diff options
Diffstat (limited to 'metadata/scripts/update.sh')
-rwxr-xr-x | metadata/scripts/update.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/metadata/scripts/update.sh b/metadata/scripts/update.sh new file mode 100755 index 00000000..5d1a9a2f --- /dev/null +++ b/metadata/scripts/update.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +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 |