From 8256fa0c7163b9c76d8b0db0c173c225cb0a981e Mon Sep 17 00:00:00 2001 From: askiiart Date: Mon, 21 Aug 2023 13:13:13 -0500 Subject: [PATCH] Add set -e (exit on error) --- daily-use-pcs/fedora/setup-git.bash | 3 ++- zsh/zsh-setup.bash | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/daily-use-pcs/fedora/setup-git.bash b/daily-use-pcs/fedora/setup-git.bash index aad94e1..5141e7a 100755 --- a/daily-use-pcs/fedora/setup-git.bash +++ b/daily-use-pcs/fedora/setup-git.bash @@ -1,5 +1,6 @@ #!/bin/bash - +# Exit if there's an error +set -e # Modify constants as needed GITEA_URL="https://git.askiiart.net" REAL_NAME="askiiart" diff --git a/zsh/zsh-setup.bash b/zsh/zsh-setup.bash index 6263073..011dc3b 100755 --- a/zsh/zsh-setup.bash +++ b/zsh/zsh-setup.bash @@ -1,3 +1,6 @@ +#!/bin/bash +# Exit if there's an error +set -e declare -A osInfo; osInfo[/etc/redhat-release]=yum osInfo[/etc/arch-release]=pacman