Skip to content

Commit

Permalink
Require trailing slash
Browse files Browse the repository at this point in the history
  • Loading branch information
adamnovak committed Aug 13, 2024
1 parent f1b1952 commit 432c7d2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/prepare_local_chunk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,12 @@ if [[ ! -z "${BASEDIR}" && "${OUTDIR}" != "${BASEDIR}"* ]] ; then
usage
fi

if [[ ! -z "${BASEDIR}" && "${BASEDIR}" != *"/" ]] ; then
echo >&2 "Base directory from -b does not end with a slash"
echo >&2
usage
fi

if [[ -z "${DESC}" ]] ; then
DESC="Region ${REGION}"
fi
Expand Down

0 comments on commit 432c7d2

Please sign in to comment.