From 940f09614be25c79d2d7a395a27127883c406db2 Mon Sep 17 00:00:00 2001 From: Mason10198 <31994327+Mason10198@users.noreply.github.com> Date: Wed, 24 Jul 2024 08:03:49 -0500 Subject: [PATCH] Update swp-install --- swp-install | 3 +++ 1 file changed, 3 insertions(+) diff --git a/swp-install b/swp-install index 00cf1cc..7eb7faf 100644 --- a/swp-install +++ b/swp-install @@ -159,6 +159,9 @@ Please choose an option (y/n) [y]: " INSTALL_OPTION BACKUP_DIR="/usr/local/bin/SkywarnPlus_$(date +'%m-%d-%Y')" print_divider echo "Making a backup to $BACKUP_DIR..." + if [ -d "$BACKUP_DIR" ]; then + rm -rf "$BACKUP_DIR" + fi mv /usr/local/bin/SkywarnPlus "$BACKUP_DIR" print_divider echo "Backup complete. Continuing with fresh installation..."