Skip to content

Commit

Permalink
Improve graph-clear subcommand (#41)
Browse files Browse the repository at this point in the history
Also resolved warn of "too many args"

fixed: hugegraph/hugegraph#559

Change-Id: Ie110bed96de1b66a196533b65375d18493d56cac
  • Loading branch information
zhoney authored and Linary committed Jun 11, 2019
1 parent 27d1e25 commit 25c92a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assembly/bin/hugegraph
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ fi

for ((i=1;i<=$#;i++));
do
if [ `eval echo '$'"$i"` == "schedule-backup" ]; then
if [ "`eval echo '$'"$i"`" == "schedule-backup" ]; then
ARGS=${*//schedule-backup/}
bash $BIN/schedule-backup.sh $URL_ARG $GRAPH_ARG $USER_ARG $PASSWORD_ARG ${ARGS//'*'/'\*'}
exit $?
Expand All @@ -105,4 +105,4 @@ if [ "$JAVA_OPTIONS" = "" ] ; then
fi

exec $JAVA $JAVA_OPTIONS -cp $LIB/hugegraph-tools-*.jar -Djava.ext.dirs=$LIB/ \
com.baidu.hugegraph.cmd.HugeGraphCommand $URL_ARG $GRAPH_ARG $USER_ARG $PASSWORD_ARG $*
com.baidu.hugegraph.cmd.HugeGraphCommand $URL_ARG $GRAPH_ARG $USER_ARG $PASSWORD_ARG "$@"

0 comments on commit 25c92a8

Please sign in to comment.