diff options
author | Michael Boelen <michael.boelen@cisofy.com> | 2017-06-21 15:28:12 +0300 |
---|---|---|
committer | Michael Boelen <michael.boelen@cisofy.com> | 2017-06-21 15:28:12 +0300 |
commit | f4b6d8d401dd68e5abbc03ea5f56c275a5f6f08b (patch) | |
tree | 2d869711ac6f5a404cf60cdbc17210e3e2e97e53 /include/parameters | |
parent | e1eac04c44e82fa06c4dca5e157dd13461780ca5 (diff) |
Show full command for remote usage
Diffstat (limited to 'include/parameters')
-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 |