1
0
mirror of synced 2026-01-25 20:06:44 +00:00

Fix loadup-apps-from-full.sh so that it fails gracefully when a notecards directory cannot be found (#1428)

This commit is contained in:
Frank Halasz
2023-11-21 21:40:19 -08:00
committed by GitHub
parent 008aff1d25
commit 8cf17ce950

View File

@@ -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"
"