Skip to content

Commit 727dfde

Browse files
author
Hunter T
committed
Update function comment style
1 parent 4418777 commit 727dfde

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

hardening/sshd

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ nc="$(printf '\033[0m')"
2626
#### [ Functions ]
2727

2828

29+
########
30+
# Cleanly exit the script.
31+
#
32+
# Arguments:
33+
# $1 - required
34+
# Exit status code.
35+
########
2936
clean_up() {
30-
####
31-
# Function Info: Cleanly exit the script.
32-
#
33-
# Parameters:
34-
# $1 - required
35-
# Exit status code.
36-
####
37-
3837
echo -e "\nExiting..."
3938
exit "$1"
4039
}
@@ -48,7 +47,7 @@ clean_up() {
4847
## Check if the script was executed with root privilege.
4948
if [[ $EUID != 0 ]]; then
5049
echo "${red}Please run this script as or with root privilege${nc}" >&2
51-
clean_up 1
50+
clean_up 1
5251
fi
5352

5453
## Confirm that 'sshd_config' exists.

0 commit comments

Comments
 (0)