We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4418777 commit 727dfdeCopy full SHA for 727dfde
1 file changed
hardening/sshd
@@ -26,15 +26,14 @@ nc="$(printf '\033[0m')"
26
#### [ Functions ]
27
28
29
+########
30
+# Cleanly exit the script.
31
+#
32
+# Arguments:
33
+# $1 - required
34
+# Exit status code.
35
36
clean_up() {
- ####
- # Function Info: Cleanly exit the script.
- #
- # Parameters:
- # $1 - required
- # Exit status code.
37
-
38
echo -e "\nExiting..."
39
exit "$1"
40
}
@@ -48,7 +47,7 @@ clean_up() {
48
47
## Check if the script was executed with root privilege.
49
if [[ $EUID != 0 ]]; then
50
echo "${red}Please run this script as or with root privilege${nc}" >&2
51
- clean_up 1
+ clean_up 1
52
fi
53
54
## Confirm that 'sshd_config' exists.
0 commit comments