Remove DaVinci Installer files upon successful install.

This commit is contained in:
Gabriel Brown 2024-06-10 10:17:01 -05:00
parent 501cb9ce47
commit aa564d4b70

View File

@ -6,8 +6,10 @@ if [ -z "$1" ]; then
read -rp "Once the download is finished, press Enter to continue..."
read -rp "Path to zip file: " zip_path
unzip -q "$zip_path" -d ~/Downloads/DaVinci_Resolve
rm -f "$zip_path"
else
unzip -q "$1" -d ~/Downloads/DaVinci_Resolve
rm -f "$1"
fi
chmod +x ~/Downloads/DaVinci_Resolve/*.run
@ -17,3 +19,4 @@ sudo mkdir -p /opt/resolve/libs/disabled-libraries/
sudo mv /opt/resolve/libs/libglib* /opt/resolve/libs/disabled-libraries
sudo mv /opt/resolve/libs/libgio* /opt/resolve/libs/disabled-libraries
sudo mv /opt/resolve/libs/libgmodule* /opt/resolve/libs/disabled-libraries
rm -rf ~/Downloads/DaVinci_Resolve