Skip to content

Commit

Permalink
cli_distributor(): invalid key if 'init' args are null
Browse files Browse the repository at this point in the history
- signed-off-by: trimstray <[email protected]>
  • Loading branch information
trimstray committed May 20, 2018
1 parent cb7219e commit 7e0be9d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/cli_distributor
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ function cli_distributor() {

_script_args_state="false"

if [[ "$_in_module" -eq 1 ]] ; then
if [[ "$_in_module" -eq 1 ]] && [[ ! -z "${_argv[1]}" ]] ; then

_count=0
_cmd_state=0
Expand Down Expand Up @@ -691,6 +691,10 @@ function cli_distributor() {

# fi

elif [[ -z "${_argv[1]}" ]] ; then

printf "stdout: %s\\n" "invalid key"

else

printf "stdout: %s\\n" "invalid param"
Expand Down

0 comments on commit 7e0be9d

Please sign in to comment.