From d6d28f14817e59530f4b07852ef614a211ed6e16 Mon Sep 17 00:00:00 2001 From: Termuellinator Date: Fri, 22 Apr 2022 17:15:37 +0200 Subject: [PATCH] quoted variable for space safety --- lug-helper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lug-helper.sh b/lug-helper.sh index e7184ff..22c5d0d 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1516,7 +1516,7 @@ rm_shaders() { # Delete shaders directory in every directory beginning with "sc-alpha" for (( i=0; i<"${#appdata_items[@]}"; i++ )); do - if [[ ${appdata_items[i]} = "$wine_prefix/$appdata_path"/sc-alpha* ]]; then # check if the item in the array begins with sc-alpha + if [[ "${appdata_items[i]}" = "$wine_prefix/$appdata_path"/sc-alpha* ]]; then # check if the item in the array begins with sc-alpha if [ -d "${appdata_items[i]}/shaders" ]; then # check if there is a shaders subfolder if message question "The following directory will be deleted:\n\n${appdata_items[i]}/shaders\n\nDo you want to proceed?"; then debug_print continue "Deleting ${appdata_items[i]}/shaders..."