Skip to content

Commit

Permalink
fix folder check
Browse files Browse the repository at this point in the history
  • Loading branch information
meffie96 committed Feb 27, 2024
1 parent bbf6222 commit 1f684e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ if [ ! -f "$1" ]; then
eerror "Error in argument: path to T1w image file does not exist!"
cleanup_and_exit 13
fi
if [[ "$1" != *".nii" ]] && [[ "$1" != *".nii.gz" ]] || [[ "$1" != "/srv/input/*" ]]; then
if [[ "$1" != *".nii" ]] && [[ "$1" != *".nii.gz" ]] || [[ "$1" != "/srv/input/"* ]]; then
eerror "Error in argument: T1w image file must be a .nii or .nii.gz file and in /srv/input/ dir!"
cleanup_and_exit 14
fi
Expand Down

0 comments on commit 1f684e9

Please sign in to comment.