wine check if already installed

This commit is contained in:
tb14
2022-11-04 15:50:41 -05:00
parent a8745e7ff0
commit 893acfffb2
+16
View File
@@ -131,6 +131,22 @@ echo "${ERRCODE}" >> /tmp/vara_failures
function install_vara_mint21() {
if hash wine 2>/dev/null; then
echo "Wine appears to already be installed. Click OK to continue to the next step" | yad \
--text-info --image=$DIR/images/corps-icon.png --center --wrap \
--button="No:0" --button="Install Wine:2" \
--title "Wine Installation." \
${r} ${c}
rc=$?
if [[ $rc -eq 2 ]]; then
echo "Wine already installed"; return
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}
exit 1
fi
else
echo "Wine needs to be installed in order to run VARA on Linux. Would you like me to attempt to do this now?" | yad \
--text-info --image=$DIR/images/corps-icon.png --center --wrap \
--button="No:0" --button="Install Wine:2" \