diff options
Diffstat (limited to 'scripts/update.sh')
-rwxr-xr-x | scripts/update.sh | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/scripts/update.sh b/scripts/update.sh index 3d8441ac..5d1a9a2f 100755 --- a/scripts/update.sh +++ b/scripts/update.sh @@ -1,3 +1,28 @@ #!/bin/sh -cd /opt/swamid-metadata && git pull && make test && make +update() +{ + echo "git pull" + git pull || return $? + echo + + echo "make aggregate" + make aggregate || return $? + echo + + echo "make test" + make test || return $? + echo + + echo "make" + make || return $? + echo +} + +cd /opt/swamid-metadata || exit 1 +output=$(update 2>&1) +ret=$? +if [ "$ret" != "0" ] ; then + echo "$output" + exit $ret +fi |