Skip to content

Commit 89d15a9

Browse files
committed
style: modify function name
1 parent acf9dea commit 89d15a9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hardening/UFW Cloudflare/ufw-cloudflare.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ clean_exit() {
8888
# shellcheck disable=SC2329,SC2317
8989
# These appear to be false positives. The function is intended to be used in the 'ERR'
9090
# trap handler, and the exit code is passed implicitly via the special variable '$?'.
91-
on_err() {
91+
on_error() {
9292
local exit_code=$?
9393

9494
echo "${C_ERROR}Command failed at line ${BASH_LINENO[0]}: ${BASH_COMMAND}" >&2
@@ -102,7 +102,7 @@ on_err() {
102102
trap 'clean_exit 129' SIGHUP
103103
trap 'clean_exit 130' SIGINT
104104
trap 'clean_exit 143' SIGTERM
105-
trap 'on_err' ERR
105+
trap 'on_error' ERR
106106

107107

108108
####[ Prepping ]############################################################################

0 commit comments

Comments
 (0)