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.
This commit is contained in:
Tim 2022-10-08 00:43:47 +02:00 committed by GitHub
parent 25789d2198
commit 089853173e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"