Skip to content

Commit 5dbee67

Browse files
committed
reset files variable before use
this way if the user was using $FILES for something else it doesn't interfere with rmtrash
1 parent fa7d25c commit 5dbee67

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

rmtrash

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,8 @@ if [ ! -h "$ARGUMENT" ] && [ ! -e "$ARGUMENT" ]; then
588588
exit 256
589589
fi
590590

591+
FILES=()
592+
591593
# recursive mode
592594
if [ $RECURSIVE == true ]; then
593595
# only delete on this filesystem

0 commit comments

Comments
 (0)