Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormboelen <michael@cisofy.com>2015-09-10 09:35:40 +0300
committermboelen <michael@cisofy.com>2015-09-10 09:35:40 +0300
commita8972b7b7fc993a5e422125f9e27b53a004e231e (patch)
tree9540bb26cbb5e231b890012eed7e29c725ac711f
parent7f4ee7ba5650cfb5345d7a45fc4d533add6448bf (diff)
Changed exit codes when using incorrect parameters
-rw-r--r--include/parameters4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/parameters b/include/parameters
index aadc6700..b4501f6a 100644
--- a/include/parameters
+++ b/include/parameters
@@ -169,11 +169,11 @@
LASTCHAR=`echo $1 | awk '{ print substr($0, length($0))}'`
if [ "${LASTCHAR}" = "/" ]; then
echo "${RED}Error:${WHITE} plugin directory path should not end with a slash${NORMAL}"
- ExitFatal
+ ExitCustom 65
fi
if [ ! -d ${PLUGINDIR} ]; then
echo "${RED}Error:${WHITE} invalid plugin directory ${PLUGINDIR}${NORMAL}"
- ExitFatal
+ ExitCustom 66
fi
;;