From f4b6d8d401dd68e5abbc03ea5f56c275a5f6f08b Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 21 Jun 2017 14:28:12 +0200 Subject: [PATCH] Show full command for remote usage --- include/parameters | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/parameters b/include/parameters index 238f1c8d..e8a1d8b5 100644 --- a/include/parameters +++ b/include/parameters @@ -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