Bail out early if profile does not exist

This commit is contained in:
Florian Lohoff 2024-01-09 16:24:07 +01:00
parent 2b645cf015
commit 6f9c67695d
No known key found for this signature in database
GPG Key ID: 90DD4120CB09F22F

View File

@ -12,6 +12,11 @@ preparesingle() {
PROFILEDIR=$(dirname ${PROFILE})
PROFILENAME=$(basename ${PROFILE})
if [ ! -f ${PROFILE} ]; then
echo Profile is not a file or does not exist
exit 1
fi
docker run --rm -t \
-v "${VOLUMENAME}:/data" \
-v "${PBF}:/data/latest.pbf" \