mirror of https://github.com/CISOfy/lynis.git
Show full command for remote usage
This commit is contained in:
parent
e1eac04c44
commit
f4b6d8d401
|
@ -50,13 +50,13 @@
|
|||
"system")
|
||||
if [ $# -gt 2 ]; then
|
||||
if [ "$3" = "remote" ]; then
|
||||
shift
|
||||
if [ "$3" = "" ]; then
|
||||
#shift
|
||||
if [ $# -eq 3 ]; then
|
||||
echo "${RED}Error: ${WHITE}Missing remote location${NORMAL}"
|
||||
echo "Example: $0 audit system remote 192.168.1.100"
|
||||
ExitFatal
|
||||
else
|
||||
REMOTE_TARGET="$3"
|
||||
REMOTE_TARGET="$4"
|
||||
shift; shift; shift # shift out first three arguments
|
||||
EXTRA_PARAMS=""
|
||||
if [ ! "$1" = "" ]; then EXTRA_PARAMS=" $@"; fi
|
||||
|
|
Loading…
Reference in New Issue