added check for installation folder before script

This commit is contained in:
Roy 2023-06-07 02:26:50 -07:00 committed by GitHub
parent a4423d7871
commit 3525f9ea90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,8 +30,14 @@ check_for_updates
# Check if the NonSteamLaunchersInstallation subfolder exists in the Downloads folder
if [ -d "$HOME/Downloads/NonSteamLaunchersInstallation" ]; then
# Delete the NonSteamLaunchersInstallation subfolder
rm -rf "$HOME/Downloads/NonSteamLaunchersInstallation"
echo "Deleted NonSteamLaunchersInstallation subfolder"
else
echo "NonSteamLaunchersInstallation subfolder does not exist"
fi