#!/bin/sh # shellcheck disable=SC2181 if [ ! -h ./medley ] || [ ! -d ./lispusers ] then echo "*** ERROR ***" echo "You must run $(basename "$0") while the cwd is a Medley top-level directory." echo "The cwd ($(pwd)) is not a Medley top-level directory." echo "Exiting." exit 1 fi # shellcheck source=./loadup-setup.sh . scripts/loadup-setup.sh ./scripts/loadup-db-from-full.sh && ./scripts/copy-db.sh if [ $? -eq 0 ]; then echo "+++++ loadup-db.sh: SUCCESS +++++" else echo "----- loadup-db.sh: FAILURE -----" fi