standardize apt-get

This commit is contained in:
aptalca 2021-09-21 13:51:19 -04:00
parent 4000250455
commit 7349288f04
2 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi

View File

@ -18,7 +18,6 @@ if [ ! -f /usr/bin/ffmpeg ]; then
if [ -f /usr/bin/apt ]; then
# Ubuntu
echo "Installing ffmpeg using apt-get"
apt-get update && \
apt-get -y install ffmpeg && \
rm -rf /var/lib/apt/lists/*
elif [ -f /sbin/apk ]; then
@ -29,7 +28,6 @@ if [ ! -f /usr/bin/ffmpeg ]; then
else
# Unknown
echo "Unknown package manager. Attempting to install ffmpeg using apt-get"
apt-get update && \
apt-get -y install ffmpeg && \
rm -rf /var/lib/apt/lists/*
fi