Skip to content

Commit

Permalink
Raise error if -t set to outside of local
Browse files Browse the repository at this point in the history
  • Loading branch information
khoffschlag committed Mar 1, 2024
1 parent 262c892 commit dfa6ed1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion scripts/cluster-pipeline-executor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,13 @@ if [ -z "${INDIR}" ] || [ -z "${OUTDIR}" ] || [ -z "${TMP_PUMI}" ] || [ -z "${LO
exit 1
fi

if [[ "${TMP_PUMI}" != "/local/*" ]]; then
if [[ "${TMP_PUMI}" == /local/* ]];
then
echo "-t was specified to a sub-directory in /local. Great!"
else
echo "Error: -t must be set to a sub-directory in /local/"
exit 1

fi

############################# Main script begins here #########################################
Expand Down

0 comments on commit dfa6ed1

Please sign in to comment.