Included apt-get standardization

apt-get update changes made by aptalca
This commit is contained in:
TheCaptain989
2021-09-26 14:12:20 -05:00
parent 8568b31bb1
commit 931a617946
2 changed files with 5 additions and 2 deletions
+5
View File
@@ -0,0 +1,5 @@
#!/usr/bin/with-contenv bash
if [ -f /usr/bin/apt ]; then
apt-get update
fi
-2
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