mirror of
https://github.com/the-sane/lug-helper.git
synced 2025-01-15 20:50:36 +00:00
Compare commits
No commits in common. "d6d28f14817e59530f4b07852ef614a211ed6e16" and "f072378617efe5c0a93762caf35400dd0e49c750" have entirely different histories.
d6d28f1481
...
f072378617
@ -103,7 +103,8 @@ live_dir="LIVE"
|
|||||||
ptu_dir="PTU"
|
ptu_dir="PTU"
|
||||||
|
|
||||||
# AppData directory
|
# AppData directory
|
||||||
appdata_path="drive_c/users/$USER/AppData/Local/Star Citizen"
|
appdata_path="drive_c/users?/appdata?/something/local/idontknow/starcitizen"
|
||||||
|
|
||||||
# Remaining directory paths are set at the end of the getdirs() function
|
# Remaining directory paths are set at the end of the getdirs() function
|
||||||
|
|
||||||
######## Runners ###########################################################
|
######## Runners ###########################################################
|
||||||
@ -1507,25 +1508,18 @@ rm_shaders() {
|
|||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Create an array containing all directories in the appdata_path
|
# Sanity check
|
||||||
for appdata_list in "$wine_prefix/$appdata_path"/*; do
|
if [ ! -d "$shaders_dir" ]; then
|
||||||
if [ -d "$appdata_list" ]; then
|
message warning "Shaders directory not found. There is nothing to delete!\n\n$shaders_dir"
|
||||||
appdata_items+=("$appdata_list")
|
return 0
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
|
|
||||||
# Delete shaders directory in every directory beginning with "sc-alpha"
|
# Delete the shader directory
|
||||||
for (( i=0; i<"${#appdata_items[@]}"; i++ )); do
|
if message question "The following directory will be deleted:\n\n$shaders_dir\n\nDo you want to proceed?"; then
|
||||||
if [[ "${appdata_items[i]}" = "$wine_prefix/$appdata_path"/sc-alpha* ]]; then # check if the item in the array begins with sc-alpha
|
debug_print continue "Deleting $shaders_dir..."
|
||||||
if [ -d "${appdata_items[i]}/shaders" ]; then # check if there is a shaders subfolder
|
rm -r "$shaders_dir"
|
||||||
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!"
|
message info "Your shaders have been deleted!"
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Delete DXVK cache
|
# Delete DXVK cache
|
||||||
|
Loading…
x
Reference in New Issue
Block a user