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; }