From ac14c2f82ef24633af39e2d5ab13bc3f097286d6 Mon Sep 17 00:00:00 2001 From: gnab-gib-se <129473234+gnab-gib-se@users.noreply.github.com> Date: Sat, 30 Dec 2023 03:15:33 -0700 Subject: [PATCH] #2121: Fix W_OPT_NOCLEAN usage (#2125) --- src/winetricks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/winetricks b/src/winetricks index 946aab148..0aa4423cd 100755 --- a/src/winetricks +++ b/src/winetricks @@ -4969,7 +4969,7 @@ winetricks_cleanup() fi test "${WINETRICKS_CACHE_SYMLINK}" && rm -f "${WINETRICKS_CACHE_SYMLINK}" - if [ "${W_OPT_NOCLEAN}" = 1 ]; then + if [ -z "${W_OPT_NOCLEAN}" ]; then rm -rf "${WINETRICKS_WORKDIR}" rm -rf "${W_TMP_EARLY}" rm -rf "${WINEPREFIX}/wrapper.cfg"