Fix loadup-apps-from-full.sh so that it fails gracefully when a notecards directory cannot be found (#1428)
This commit is contained in:
@@ -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"
|
||||
"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user