From ebd8c8c8499d1a3c315b4b07cd7ff7bdc2e326f0 Mon Sep 17 00:00:00 2001 From: Christophe Nanteuil Date: Sat, 7 Oct 2023 20:00:58 +0200 Subject: [PATCH] bash operator -eq is for integers not strings --- .scripts/fuzzy_diff | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.scripts/fuzzy_diff b/.scripts/fuzzy_diff index 30251a64..5571e16e 100755 --- a/.scripts/fuzzy_diff +++ b/.scripts/fuzzy_diff @@ -11,7 +11,7 @@ _usage() { LAUNCH_EDIT=1 if [ $# -eq 2 ]; then - if [ "$1" -eq "-n" ] || [ "$1" -eq "--no-edit" ]; then + if [ "$1" = "-n" ] || [ "$1" = "--no-edit" ]; then LAUNCH_EDIT=0 else _usage