scylla-jmx/scripts
Amos Kong f4ef4a5a3e scripts: process empty string in arguments
Examples:
 # scripts/scylla-jmx -l /usr/lib/scylla/jmx ""
 Result: script stuck

 # scripts/scylla-jmx "" -l /usr/lib/scylla/jmx
   Unknown parameter: /usr/lib/scylla/jmx
 Result: wrongly shift arguments

Above two problem caused by a redundant argument parse ("$PARAM_PORT"),
the variable isn't set, so it's a covert empty string. The others valid
9 options are all parsed with right case, and API_ADDR also be set by
other case path, so it's safe to remove $PARAM_PORT.

This patch removed the redundant argument, and skipped empty string in
arguments.

Signed-off-by: Amos Kong <amos@scylladb.com>
Message-Id: <74c3f75d58bab1a8348f2c87f58825eed4c5b705.1510501133.git.amos@scylladb.com>
2017-11-12 17:43:43 +02:00
..
symlinks dist: change scylla-jmx process name from 'java' to 'scylla-jmx' 2016-05-20 13:38:28 +03:00
git-archive-all scripts: chmod a+rx git-archive-all to prevent building package 2016-12-30 10:18:52 +02:00
scylla-jmx scripts: process empty string in arguments 2017-11-12 17:43:43 +02:00