mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
wine check if already installed
This commit is contained in:
@@ -131,6 +131,22 @@ echo "${ERRCODE}" >> /tmp/vara_failures
|
|||||||
|
|
||||||
function install_vara_mint21() {
|
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 \
|
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 \
|
--text-info --image=$DIR/images/corps-icon.png --center --wrap \
|
||||||
--button="No:0" --button="Install Wine:2" \
|
--button="No:0" --button="Install Wine:2" \
|
||||||
|
|||||||
Reference in New Issue
Block a user