From 4c818db14297e01e39f3b611e185b3494187ee6c Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 24 Feb 2024 11:19:06 +0100 Subject: fix(hm/pkgs/git-edit-index): Correctly exit when parsing options --- hm/soispha/pkgs/scripts/apps/git-edit-index.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hm/soispha/pkgs/scripts/apps/git-edit-index.sh b/hm/soispha/pkgs/scripts/apps/git-edit-index.sh index 2088c314..5233b41b 100755 --- a/hm/soispha/pkgs/scripts/apps/git-edit-index.sh +++ b/hm/soispha/pkgs/scripts/apps/git-edit-index.sh @@ -80,14 +80,17 @@ for arg in "$@"; do case "$arg" in "--help" | "-h") help + exit 0 ;; "--version" | "-v") version + exit 0 ;; "--") - break + end_of_cli_options=true ;; esac + [ "$end_of_cli_options" = "true" ] && break done edit "$@" -- cgit 1.4.1