diff --git a/src/winetricks b/src/winetricks index d5428d3a9..691130faa 100755 --- a/src/winetricks +++ b/src/winetricks @@ -14083,8 +14083,8 @@ load_winemono() regquery_dnbelow5=$? # 0 = found regkeys; 1 = no regkeys (or wine crashed while searching) ${WINE} reg query "HKCU\\Software\\Wine\\Mono" 1>/dev/null # check if a user created a custom wine-mono installation. This is not a default regkey when wine-mono is installed regquery_customwinemono=$? # 0 = found regkeys; 1 = no regkeys (or wine crashed while searching) - for winemono_msicaches in "${HOME}/.cache/wine/" "/usr/share/wine/mono/" "/opt/wine/mono/"; do - if winemono_cachedmsi=$(find ${winemono_msicaches} -iname 'wine-mono*.msi'); then + for winemono_cachedirs in "${HOME}/.cache/wine/" "/usr/share/wine/mono/" "/opt/wine/mono/"; do + if winemono_cachedmsi=$(find "${winemono_cachedirs}" -iname 'wine-mono*.msi'); then break fi done @@ -14098,7 +14098,7 @@ load_winemono() fi # Auto-install any cached wine-mono*.msi files silenty, or use AHK to silently press "Wine Mono Installer" install button, or run "Wine Mono Installer" for user - if [ ${winemono_cachedmsi} ]; then + if [ "${winemono_cachedmsi}" ]; then w_try "${WINE}" control.exe appwiz.cpl install_mono # launch Wine Mono Installer # Note: Wine Mono Installer will auto-install a cached wine-mono*.msi if it is in any of these directories (ignores .tar.gz / .tar.xz files). elif [ ${W_OPT_UNATTENDED} ]; then