From d23c6f86688b189c102f3d19e3290ec44a5cc661 Mon Sep 17 00:00:00 2001 From: tb14 Date: Wed, 2 Jul 2025 02:43:42 -0500 Subject: [PATCH] fixed DIR --- AmRRON-Vara-setup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/AmRRON-Vara-setup.sh b/AmRRON-Vara-setup.sh index 3c93506..84b26a5 100755 --- a/AmRRON-Vara-setup.sh +++ b/AmRRON-Vara-setup.sh @@ -719,11 +719,11 @@ function complete() { rm /tmp/results fi # Define the directory and file pattern -DIR="$HOME/Desktop" +DESKDIR="$HOME/Desktop" PATTERN="*.lnk" # Loop through each .lnk file and remove it if it exists -for FILE in $DIR/$PATTERN; do +for FILE in $DESKDIR/$PATTERN; do if [ -f "$FILE" ]; then rm "$FILE" || { ERRCODE="Failed to remove $FILE"; errors; }