Fix import and export bash
Fix import and export for metric names containing space. It passed metric names with spaces as two separate words and JCommander couldn't recognize it as one word even when we surround the metric name with quotas.
@@ -62,10 +62,10 @@ elif [ "$1" = "stop" ] ; then
rm $KAIROS_PID_FILE
elif [ "$1" = "export" ] ; then
shift
- exec "$JAVA" $JAVA_OPTS -cp $CLASSPATH org.kairosdb.core.Main -c export -p conf/kairosdb.conf $*
+ exec "$JAVA" $JAVA_OPTS -cp $CLASSPATH org.kairosdb.core.Main -c export -p conf/kairosdb.conf "$@"
elif [ "$1" = "import" ] ; then
shift
- exec "$JAVA" $JAVA_OPTS -cp $CLASSPATH org.kairosdb.core.Main -c import -p conf/kairosdb.conf $*
+ exec "$JAVA" $JAVA_OPTS -cp $CLASSPATH org.kairosdb.core.Main -c import -p conf/kairosdb.conf "$@"
else
echo "Unrecognized command."
exit 1
