File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ nc="$(printf '\033[0m')"
2525if [[ $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
2929fi
3030
3131
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ nc="$(printf '\033[0m')"
2424if [[ $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
2828fi
2929
3030
Original file line number Diff line number Diff line change @@ -48,14 +48,14 @@ clean_up() {
4848# # Check if the script was executed with root privilege.
4949if [[ $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
5252fi
5353
5454# # Confirm that 'sshd_config' exists.
5555if [[ ! -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
5959fi
6060
6161
You can’t perform that action at this time.
0 commit comments