From 3525f9ea9088b2c3c90dcce9f80f964b80a4e14d Mon Sep 17 00:00:00 2001 From: Roy <88516395+moraroy@users.noreply.github.com> Date: Wed, 7 Jun 2023 02:26:50 -0700 Subject: [PATCH] added check for installation folder before script --- NonSteamLaunchers.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/NonSteamLaunchers.sh b/NonSteamLaunchers.sh index 1e4a09b..28c13aa 100644 --- a/NonSteamLaunchers.sh +++ b/NonSteamLaunchers.sh @@ -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