From 089853173e382be2d41ccbeadd56b361547a1481 Mon Sep 17 00:00:00 2001 From: Tim <45259958+carlfriedrich@users.noreply.github.com> Date: Sat, 8 Oct 2022 00:43:47 +0200 Subject: [PATCH] Do not "set -e" in standalone forgit (#238) Setting the error option in bash bypasses error handling in the forgit functions, because the script immediatley exits in case of an error. Remove the option to make error handling possible. Bash scripts automatically return the exit code of the last statement, so standalone forgit will still return useful error codes. --- bin/git-forgit | 2 -- 1 file changed, 2 deletions(-) diff --git a/bin/git-forgit b/bin/git-forgit index aeafee7..2bf5820 100755 --- a/bin/git-forgit +++ b/bin/git-forgit @@ -10,8 +10,6 @@ # This gives users the choice to set aliases inside of their git config instead # of their shell config if they prefer. -set -e - source "$FORGIT_INSTALL_DIR/forgit.plugin.zsh" cmd="$1"