diff options
-rw-r--r-- | include/parameters | 6 |
1 files 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 |