Show full command for remote usage

This commit is contained in:
Michael Boelen 2017-06-21 14:28:12 +02:00
parent e1eac04c44
commit f4b6d8d401
No known key found for this signature in database
GPG Key ID: 26141F77A09D7F04
1 changed files with 3 additions and 3 deletions

View File

@ -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