added apt update to prevent erorr installing unzip

This commit is contained in:
DefKorns 2021-12-15 15:46:48 -01:00
parent 09b3a7502f
commit 77a64284bf
No known key found for this signature in database
GPG Key ID: AABAA25E60600512

View File

@ -113,6 +113,7 @@ if [[ $FILE == *.zip ]]; then
echo -e "\e[1;33m Checking for unzip command... \e[0m"
if ! command -v unzip &> /dev/null; then
echo -e "\e[1;33m unzip not found, installing... \e[0m"
apt update
apt install unzip -y
fi
fi