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