Standardized apt-get update per aptalca

This commit is contained in:
TheCaptain989 2021-12-27 16:00:55 -06:00
parent 2122355540
commit 73cdbaa2d4
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/mkvmerge ]; then
if [ -f /usr/bin/apt ]; then
# Ubuntu
echo "Installing MKVToolNix using apt-get"
apt-get update && \
apt-get -y install mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
elif [ -f /sbin/apk ]; then
@ -29,7 +28,6 @@ if [ ! -f /usr/bin/mkvmerge ]; then
else
# Unknown
echo "Unknown package manager. Attempting to install MKVToolNix using apt-get"
apt-get update && \
apt-get -y install mkvtoolnix && \
rm -rf /var/lib/apt/lists/*
fi