mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 17:24:32 +02:00
Use echo when checking parameters to prevent incorrect issues with screen output
This commit is contained in:
parent
4d52e64b2a
commit
70bb10328f
@ -38,8 +38,8 @@
|
|||||||
case $2 in
|
case $2 in
|
||||||
"dockerfile")
|
"dockerfile")
|
||||||
if [ "$3" = "" ]; then
|
if [ "$3" = "" ]; then
|
||||||
Display --text "${RED}Error: ${WHITE}Missing file name or URL${NORMAL}"
|
echo "${RED}Error: ${WHITE}Missing file name or URL${NORMAL}"
|
||||||
Display --text "Example: lynis audit dockerfile /root/Dockerfile"
|
echo "Example: lynis audit dockerfile /root/Dockerfile"
|
||||||
ExitFatal
|
ExitFatal
|
||||||
else
|
else
|
||||||
shift; shift
|
shift; shift
|
||||||
@ -58,11 +58,11 @@
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
else
|
else
|
||||||
Display --text "${RED}Error: ${WHITE}Need a target to audit${NORMAL}"
|
echo --text "${RED}Error: ${WHITE}Need a target to audit${NORMAL}"
|
||||||
Display --text " "
|
echo --text " "
|
||||||
Display --text "Examples:"
|
echo --text "Examples:"
|
||||||
Display --text "lynis audit dockerfile"
|
echo --text "lynis audit dockerfile"
|
||||||
Display --text "lynis audit system"
|
echo --text "lynis audit system"
|
||||||
ExitFatal
|
ExitFatal
|
||||||
fi
|
fi
|
||||||
#break
|
#break
|
||||||
@ -81,11 +81,11 @@
|
|||||||
HELPER_PARAMS="$1 $2"
|
HELPER_PARAMS="$1 $2"
|
||||||
break
|
break
|
||||||
else
|
else
|
||||||
Display --text "${RED}Error: ${WHITE}Need a target for update${NORMAL}"
|
echo "${RED}Error: ${WHITE}Need a target for update${NORMAL}"
|
||||||
Display --text " "
|
echo " "
|
||||||
Display --text "Examples:"
|
echo "Examples:"
|
||||||
Display --text "lynis update info"
|
echo "lynis update info"
|
||||||
Display --text "lynis update release"
|
echo "lynis update release"
|
||||||
ExitFatal
|
ExitFatal
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user