Updated 'update' script exit code
This commit is contained in:
parent
3e1257417f
commit
3427d07580
4
update
4
update
|
@ -3,9 +3,13 @@
|
||||||
# [1] Send data + fetch configuration
|
# [1] Send data + fetch configuration
|
||||||
/home/sats/satsd/source/lib/api/sync;
|
/home/sats/satsd/source/lib/api/sync;
|
||||||
|
|
||||||
|
test $? -ne 0 && exit 127;
|
||||||
|
|
||||||
# [2] Update source
|
# [2] Update source
|
||||||
BRANCH=$(cat /home/sats/satsd/conf/machine.branch);
|
BRANCH=$(cat /home/sats/satsd/conf/machine.branch);
|
||||||
|
|
||||||
cd /home/sats/satsd/source/;
|
cd /home/sats/satsd/source/;
|
||||||
git checkout $BRANCH;
|
git checkout $BRANCH;
|
||||||
|
test $? -ne 0 && exit 127;
|
||||||
git pull origin $BRANCH;
|
git pull origin $BRANCH;
|
||||||
|
test $? -ne 0 && exit 127;
|
||||||
|
|
Loading…
Reference in New Issue