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
|
rm /tmp/results
|
||||||
fi
|
fi
|
||||||
# Define the directory and file pattern
|
# Define the directory and file pattern
|
||||||
DIR="$HOME/Desktop"
|
DESKDIR="$HOME/Desktop"
|
||||||
PATTERN="*.lnk"
|
PATTERN="*.lnk"
|
||||||
|
|
||||||
# Loop through each .lnk file and remove it if it exists
|
# 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
|
if [ -f "$FILE" ]; then
|
||||||
rm "$FILE" ||
|
rm "$FILE" ||
|
||||||
{ ERRCODE="Failed to remove $FILE"; errors; }
|
{ ERRCODE="Failed to remove $FILE"; errors; }
|
||||||
|
|||||||
Reference in New Issue
Block a user