mirror of
https://gitlab.com/amrron/setup-scripts.git
synced 2026-10-17 01:54:00 -04:00
fixed DIR
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user