From 3427d07580593ab8ed7dbfe16613091bd06d8204 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Sat, 28 Jan 2017 19:26:19 +0100 Subject: [PATCH] Updated 'update' script exit code --- update | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/update b/update index 46bead5..9b4b218 100755 --- a/update +++ b/update @@ -3,9 +3,13 @@ # [1] Send data + fetch configuration /home/sats/satsd/source/lib/api/sync; +test $? -ne 0 && exit 127; + # [2] Update source BRANCH=$(cat /home/sats/satsd/conf/machine.branch); cd /home/sats/satsd/source/; git checkout $BRANCH; +test $? -ne 0 && exit 127; git pull origin $BRANCH; +test $? -ne 0 && exit 127;