Skip to content

Commit

Permalink
winemono: double-quote variables
Browse files Browse the repository at this point in the history
  • Loading branch information
WheezyE authored Jun 10, 2024
1 parent c9347fa commit 8b34c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/winetricks
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 8b34c9d

Please sign in to comment.