mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-25 23:05:01 +02:00
Changed exit codes when using incorrect parameters
This commit is contained in:
parent
7f4ee7ba56
commit
a8972b7b7f
@ -169,11 +169,11 @@
|
|||||||
LASTCHAR=`echo $1 | awk '{ print substr($0, length($0))}'`
|
LASTCHAR=`echo $1 | awk '{ print substr($0, length($0))}'`
|
||||||
if [ "${LASTCHAR}" = "/" ]; then
|
if [ "${LASTCHAR}" = "/" ]; then
|
||||||
echo "${RED}Error:${WHITE} plugin directory path should not end with a slash${NORMAL}"
|
echo "${RED}Error:${WHITE} plugin directory path should not end with a slash${NORMAL}"
|
||||||
ExitFatal
|
ExitCustom 65
|
||||||
fi
|
fi
|
||||||
if [ ! -d ${PLUGINDIR} ]; then
|
if [ ! -d ${PLUGINDIR} ]; then
|
||||||
echo "${RED}Error:${WHITE} invalid plugin directory ${PLUGINDIR}${NORMAL}"
|
echo "${RED}Error:${WHITE} invalid plugin directory ${PLUGINDIR}${NORMAL}"
|
||||||
ExitFatal
|
ExitCustom 66
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user