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

commit: allow tasks list

parent f556b5d7
......@@ -132,11 +132,13 @@ fi
if [ "$1" = "commit" ] ; then
shift
COMMIT=''
TASK="$1"
[ -n "$TASK" ] || TASK="$(get_last)" || fatal "Can't get last task"
TASKLIST="$*"
if [ -z "$TASKLIST" ] ; then
TASKLIST="$(get_last)" || fatal "Can't get last task"
fi
for TASK in $TASKLIST ; do
docmd ssh $GEARHOST task run --commit "$TASK"
done
exit
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