Skip to content

Commit 2b95937

Browse files
author
Hunter T
committed
revert: exit code numbers
1 parent 1b7a8d3 commit 2b95937

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

auditing/lynis-installer.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ nc="$(printf '\033[0m')"
2525
if [[ $EUID != 0 ]]; then
2626
echo "${red}Please run this script as or with root privilege${nc}" >&2
2727
echo -e "\nExiting..."
28-
exit 2
28+
exit 1
2929
fi
3030

3131

hardening/root-locker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ nc="$(printf '\033[0m')"
2424
if [[ $EUID != 0 ]]; then
2525
echo "${red}Please run this script as or with root privilege${nc}" >&2
2626
echo -e "\nExiting..."
27-
exit 2
27+
exit 1
2828
fi
2929

3030

hardening/sshd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,14 +48,14 @@ clean_up() {
4848
## Check if the script was executed with root privilege.
4949
if [[ $EUID != 0 ]]; then
5050
echo "${red}Please run this script as or with root privilege${nc}" >&2
51-
clean_up 2
51+
clean_up 1
5252
fi
5353

5454
## Confirm that 'sshd_config' exists.
5555
if [[ ! -f $config_file ]]; then
5656
echo "${red}'sshd_config' doesn't exist" >&2
5757
echo "${cyan}openssh-server may not be installed${nc}"
58-
clean_up 3
58+
clean_up 1
5959
fi
6060

6161

0 commit comments

Comments
 (0)