Fix for behavior of bin -f nonexistent (was flipped)

This commit is contained in:
Bruce Hill 2020-05-11 19:27:40 -07:00
parent 1a519845c5
commit 7631304d4c

2
bin
View File

@ -292,7 +292,7 @@ case "$action" in
for f; do
filename="$(readlink -f -- "$f")"
if ! [ -e "$filename" ]; then
[ "$force_flag" != "-f" ] || fail "File does not exist: $filename"
[ "$force_flag" = "-f" ] || fail "File does not exist: $filename"
else
can_trash "$filename" && trash_file "$filename" || exit 1
fi