Skip to content

Commit 8022f4a

Browse files
committed
fix: fail early if schema doesn't exist
1 parent 6cf8c4b commit 8022f4a

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

entrypoint.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,13 @@ then
1010
strict='--strict'
1111
fi
1212

13-
if [ ! -e $target ]
13+
if [ ! -e ${schema} ]
14+
then
15+
>&2 echo "Schema does not exist: $schema"
16+
exit 1
17+
fi
18+
19+
if [ ! -e ${target} ]
1420
then
1521
>&2 echo "Target does not exist: $target"
1622
exit 1

0 commit comments

Comments
 (0)