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