added -y for upgrade commands

This commit is contained in:
tb14
2022-11-04 15:56:09 -05:00
parent ff36f2191f
commit 2823dea760
+1 -1
View File
@@ -168,7 +168,7 @@ echo "Now we will install the dependencies required" | yad \
${r} ${c}
rc=$?
if [[ $rc -eq 2 ]]; then
echo "Installing Dependencies" | sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install libc6-i386 && sudo apt install libasound2-plugins:i386 && sudo apt upgrade ||
echo "Installing Dependencies" | sudo dpkg --add-architecture i386 && sudo apt update && sudo apt install -y libc6-i386 && sudo apt install -y libasound2-plugins:i386 && sudo apt upgrade -y ||
{ ERRCODE="Failed to install dependencies"; errors; }
elif [[ $rc == 0 ]]; then
yad --image=$DIR/images/corps-icon.png --center --button="gtk-ok:0" --title "Exit Selected" --text "Exiting installer now" ${r} ${c}