diff --git a/scripts/loadup-apps-from-full.sh b/scripts/loadup-apps-from-full.sh index 7db94018..e10ef35e 100755 --- a/scripts/loadup-apps-from-full.sh +++ b/scripts/loadup-apps-from-full.sh @@ -23,6 +23,14 @@ if [ ! -e ${NOTECARDSDIR} ]; then fi fi +if [ -z "${NOTECARDSDIR}" ]; then + echo "Error: Cannot find the Notecards directory" + echo "It should be located at ${MEDLEYDIR}/../notecards or" + echo "${MEDLEYDIR}/../../notecards. But its not." + echo "Exiting" + exit 1 +fi + cat >"${cmfile}" <<"EOF" "