#!/bin/sh update() { echo "git pull" git pull || return $? echo echo "make aggregate" make aggregate || return $? echo echo "make (2007)" env SWAMID_MK_CONFIG=swamid2007 make || return $? echo echo "make (2016)" env SWAMID_MK_CONFIG=swamid2016 make || return $? echo } cd /opt/swamid-metadata || exit 1 update