Commit 3c1efe94 authored by Vitaly Lipatov's avatar Vitaly Lipatov

gitask: fix return status

parent d3c01504
......@@ -285,10 +285,14 @@ if [ "$1" = "add" ] || [ "$1" = "Add" ] ; then
# too much re add to the same place
[ "$SUBTASK" = "1" ] && SUBTASK=""
fi
docmd ssh $GEARHOST task add $TASK $SUBTASK $ADDCMD $PACKAGE
docmd ssh $GEARHOST task add $TASK $SUBTASK $ADDCMD $PACKAGE || fatal
done
[ -n "$NEXTCOMMAND" ] && sleep 2 && $0 $NEXTCOMMAND
exit
if [ -n "$NEXTCOMMAND" ] ; then
sleep 2
$0 $NEXTCOMMAND
exit
fi
exit 0
fi
if [ "$1" = "show" ] ; then
......
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