Skip to content

Commit

Permalink
fix(installer): Fix ShellCheck 2329 problem
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
brlin-tw committed Jan 12, 2025

Verified

This commit was signed with the committer’s verified signature.
ivangabriele Ivan Gabriele
1 parent c2cdf83 commit b5de2ad
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Installer.bash
Original file line number Diff line number Diff line change
@@ -327,28 +327,28 @@ cleanup_old_installation(){
## Shell Builtin Commands » Bourne Shell Builtins » trap

# Trap functions are never invoked directly
# shellcheck disable=SC2329
# shellcheck disable=SC2317,SC2329
trap_errexit(){
printf 'An error occurred and the script is prematurely aborted\n' 1>&2
return 0
}

# Trap functions are never invoked directly
# shellcheck disable=SC2329
# shellcheck disable=SC2317,SC2329
trap_exit(){
return 0
}

# Trap functions are never invoked directly
# shellcheck disable=SC2329
# shellcheck disable=SC2317,SC2329
trap_return(){
local returning_function="${1}"

printf 'DEBUG: %s: returning from %s\n' "${FUNCNAME[0]}" "${returning_function}" 1>&2
}

# Trap functions are never invoked directly
# shellcheck disable=SC2329
# shellcheck disable=SC2317,SC2329
trap_interrupt(){
printf '\n' # Separate previous output
printf 'Recieved SIGINT, script is interrupted.' 1>&2

0 comments on commit b5de2ad

Please sign in to comment.