We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent acf9dea commit 89d15a9Copy full SHA for 89d15a9
1 file changed
hardening/UFW Cloudflare/ufw-cloudflare.bash
@@ -88,7 +88,7 @@ clean_exit() {
88
# shellcheck disable=SC2329,SC2317
89
# These appear to be false positives. The function is intended to be used in the 'ERR'
90
# trap handler, and the exit code is passed implicitly via the special variable '$?'.
91
-on_err() {
+on_error() {
92
local exit_code=$?
93
94
echo "${C_ERROR}Command failed at line ${BASH_LINENO[0]}: ${BASH_COMMAND}" >&2
@@ -102,7 +102,7 @@ on_err() {
102
trap 'clean_exit 129' SIGHUP
103
trap 'clean_exit 130' SIGINT
104
trap 'clean_exit 143' SIGTERM
105
-trap 'on_err' ERR
+trap 'on_error' ERR
106
107
108
####[ Prepping ]############################################################################
0 commit comments