mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-07 00:50:19 +00:00
fix(scripts): add missing exit after error handlers
Critical bugs where error paths print a message but don't stop execution: - install-fonts.sh: cd failure now exits properly - install-ntfy.sh: unsupported OS case now exits with error - install-git-crypt.sh: git clone and cd failures now exit properly
This commit is contained in:
@@ -21,7 +21,7 @@ clone_or_update_repo()
|
||||
git clone --quiet --filter=blob:none --sparse --depth=1 "$GIT_REPO" "$TMP_PATH"
|
||||
fi
|
||||
|
||||
cd "$TMP_PATH" || msgr err "No such folder $TMP_PATH"
|
||||
cd "$TMP_PATH" || { msgr err "No such folder $TMP_PATH"; exit 1; }
|
||||
}
|
||||
|
||||
# Function to add fonts to sparse-checkout
|
||||
|
||||
Reference in New Issue
Block a user