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

Making @nbrigg's check for existance of LOADUP_OUTDIR and LOADUP_WORKDIR a bit fancier

This commit is contained in:
Frank Halasz
2023-08-07 18:00:53 -07:00
parent 3cefaf338c
commit 3aa01c7a38

View File

@@ -16,8 +16,26 @@ then
export LOADUP_OUTDIR="${MEDLEYDIR}"/loadups
fi
mkdir -p "${LOADUP_WORKDIR}"
mkdir -p "${LOADUP_OUTDIR}"
if [ ! -d "${LOADUP_OUTDIR}" ];
then
if [ ! -e "${LOADUP_OUTDIR}" ];
then
mkdir -p "${LOADUP_OUTDIR}"
else
"Error: ${LOADUP_OUTDIR} exists but is not a directory. Exiting."
fi
fi
if [ ! -d "${LOADUP_WORKDIR}" ];
then
if [ ! -e "${LOADUP_WORKDIR}" ];
then
mkdir -p "${LOADUP_WORKDIR}"
else
"Error: ${LOADUP_WORKDIR} exists but is not a directory. Exiting."
fi
fi
scr="-sc 1024x768 -g 1042x790"