rm-prefer-trash: fix trashdir being unset in some cases
This commit is contained in:
parent
51616211d8
commit
3eaa2828ba
1 changed files with 1 additions and 1 deletions
|
@ -110,9 +110,9 @@ do_rmtrash() {
|
|||
fi
|
||||
fi
|
||||
done
|
||||
trashdir=''
|
||||
if [ "$fs1" != '' ]; then
|
||||
# if we get here, we have validated that all the files are on the same filesystem
|
||||
trashdir=''
|
||||
found_trash=false
|
||||
while [ "$trashdirs" != "$trashdir" ]; do
|
||||
trashdir="${trashdirs%%:*}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue