Setup script: add check on wineprefix

This commit is contained in:
raffarti 2018-02-05 20:05:06 +01:00
parent f4ed16a7cc
commit f19af68c7e

View file

@ -22,6 +22,14 @@ if [ -z "$WINEPREFIX" ]; then
if [ "$continue" != "y" ] && [ "$continue" != "Y" ]; then
exit 1
fi
else
if ! [ -f "$WINEPREFIX/system.reg" ]; then
echo "WINEPREFIX does not point to an existing wine installation. Proceeding will create a new one, continue? (y/N)"
read continue
if [ "$continue" != "y" ] && [ "$continue" != "Y" ]; then
exit 1
fi
fi
fi
unix_sys_path="$($wine winepath -u 'C:\windows\system32')"