Skip to content

Commit

Permalink
fixed if statement in rm_shaders
Browse files Browse the repository at this point in the history
  • Loading branch information
Termuellinator committed May 16, 2022
1 parent b4d9598 commit 65ac8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lug-helper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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* ] && [ -d "${appdata_items[i]}"/shaders ]; then # check if the item in the array begins with sc-alpha
if [[ "${appdata_items[i]}" = "$wine_prefix/$appdata_path"/sc-alpha* ]] && [[ -d "${appdata_items[i]}"/shaders ]]; then # check if the item in the array begins with sc-alpha
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"
Expand Down

0 comments on commit 65ac8ae

Please sign in to comment.