fixed DIR

This commit is contained in:
tb14
2025-07-02 02:43:42 -05:00
parent 2398c4f6e0
commit d23c6f8668
+2 -2
View File
@@ -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; }