Skip to content

Commit 114cb43

Browse files
author
Hunter T
committed
func: modify exit codes
1 parent e0f8486 commit 114cb43

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

auditing/lynis-installer.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#
33
# A script for installing and running lynis with recommended options.
44
#
5-
# Version: v1.0.3
5+
# Version: v1.0.4
66
# License: MIT License
7-
# Copyright (c) 2020-2021 Hunter T.
7+
# Copyright (c) 2020-2022 Hunter T. (StrangeRanger)
88
#
99
########################################################################################
1010
#### [ Variables ]
@@ -25,7 +25,7 @@ nc=$'\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 1
28+
exit 2
2929
fi
3030

3131

0 commit comments

Comments
 (0)