Fix for behavior of bin -f nonexistent
(was flipped)
This commit is contained in:
parent
1a519845c5
commit
7631304d4c
2
bin
2
bin
@ -292,7 +292,7 @@ case "$action" in
|
|||||||
for f; do
|
for f; do
|
||||||
filename="$(readlink -f -- "$f")"
|
filename="$(readlink -f -- "$f")"
|
||||||
if ! [ -e "$filename" ]; then
|
if ! [ -e "$filename" ]; then
|
||||||
[ "$force_flag" != "-f" ] || fail "File does not exist: $filename"
|
[ "$force_flag" = "-f" ] || fail "File does not exist: $filename"
|
||||||
else
|
else
|
||||||
can_trash "$filename" && trash_file "$filename" || exit 1
|
can_trash "$filename" && trash_file "$filename" || exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user