diff --git a/cluster/log-dump/log-dump.sh b/cluster/log-dump/log-dump.sh index 0bd10a141cf..2c8a33f1f27 100755 --- a/cluster/log-dump/log-dump.sh +++ b/cluster/log-dump/log-dump.sh @@ -205,7 +205,7 @@ function dump_masters() { function dump_nodes() { local node_names - if [[ -n "$1" ]]; then + if [[ -n "${1:-}" ]]; then echo "Dumping logs for nodes provided as args to dump_nodes() function" node_names=( "$@" ) elif [[ -n "${use_custom_instance_list}" ]]; then