diff options
| -rwxr-xr-x | update.sh | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -16,7 +16,10 @@ __update_sh_run() { printf "\033[35;1m> \033[0m\033[35;1m%s\033[0m\n" "Running '$(basename "$__update_sh_command") $*' .." - "$__update_sh_command" "$@" + if ! "$__update_sh_command" "$@"; then + printf "ERROR: Command failed ('%s')\n" "$__update_sh_command" + exit 1 + fi unset __update_sh_command } |
