-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loops through and delete all files with autosub in the name
- Loading branch information
Showing
2 changed files
with
8 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
#!/bin/bash | ||
|
||
# Define the installation directory | ||
|
||
|
||
# Paths to remove | ||
AUTOSUBS_DIR="${APPDATA}/Blackmagic Design/DaVinci Resolve/Support/Fusion/" | ||
LUA_SCRIPT="${APPDATA}/Blackmagic Design/DaVinci Resolve/Support/Fusion/Scripts/Utility/AutoSubs V2.lua" | ||
echo "Uninstalling AutoSubs..." | ||
files="${APPDATA}/Blackmagic Design/DaVinci Resolve/Support/Fusion/Scripts/Utility/" | ||
|
||
# Remove the AutoSubs directory | ||
if [ -d "$AUTOSUBS_DIR" ]; then | ||
rm -rf "$AUTOSUBS_DIR" | ||
echo "Removed directory: $AUTOSUBS_DIR" | ||
else | ||
echo "Directory not found: $AUTOSUBS_DIR" | ||
fi | ||
# Loop through each file in the directory | ||
for item in "${files}"*; do | ||
if [[ "$item" == *AutoSub* ]]; then | ||
rm -rf "$item" | ||
echo "Removed: $item" | ||
fi | ||
done | ||
|
||
echo "Uninstallation complete." | ||
exit 0 |