From 7631304d4c631567ec79eb4c11672ff601e237ec Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 11 May 2020 19:27:40 -0700 Subject: [PATCH] Fix for behavior of `bin -f nonexistent` (was flipped) --- bin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin b/bin index 0f2fd0f..c11ccc3 100755 --- a/bin +++ b/bin @@ -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