From f99fe9b9961452fa6482c375bda4c17b2c13d1fe Mon Sep 17 00:00:00 2001 From: Termuellinator Date: Mon, 16 May 2022 15:40:12 +0200 Subject: [PATCH] harmonized style --- lug-helper.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lug-helper.sh b/lug-helper.sh index 7ee9cee..479afb4 100755 --- a/lug-helper.sh +++ b/lug-helper.sh @@ -1516,17 +1516,17 @@ 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..." rm -r "${appdata_items[i]}/shaders" message info "Your shaders have been deleted!" fi - elif [[ $i = $(( ${#appdata_items[@]} - 1 )) ]]; then # display message when end of array is reached and no shaders directories were found + elif [ $i = $(( "${#appdata_items[@]}" - 1 )) ]; then # display message when end of array is reached and no shaders directories were found message info "No more shader directories found" fi - elif [[ $i = $(( ${#appdata_items[@]} - 1 )) ]]; then # display message when end of array is reached and no shaders or sc-alpha directories were found + elif [ $i = $(( "${#appdata_items[@]}" - 1 )) ]; then # display message when end of array is reached and no shaders or sc-alpha directories were found message info "No more shader directories found" fi done