Commit 9aad1e7a authored by Vitaly Lipatov's avatar Vitaly Lipatov

commit: allow tasks list

parent f556b5d7
...@@ -132,11 +132,13 @@ fi ...@@ -132,11 +132,13 @@ fi
if [ "$1" = "commit" ] ; then if [ "$1" = "commit" ] ; then
shift shift
COMMIT='' COMMIT=''
TASK="$1" TASKLIST="$*"
if [ -z "$TASKLIST" ] ; then
[ -n "$TASK" ] || TASK="$(get_last)" || fatal "Can't get last task" TASKLIST="$(get_last)" || fatal "Can't get last task"
fi
docmd ssh $GEARHOST task run --commit "$TASK" for TASK in $TASKLIST ; do
docmd ssh $GEARHOST task run --commit "$TASK"
done
exit exit
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment