about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xhm/soispha/pkgs/scripts/apps/git-edit-index.sh5
1 files changed, 4 insertions, 1 deletions
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 "$@"