We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 681a41f commit 8f2ea43Copy full SHA for 8f2ea43
1 file changed
entrypoint.sh
@@ -1,11 +1,19 @@
1
#!/bin/bash
2
-set -ex
+set -eux
3
4
strict=''
5
+schema=${INPUT_SCHEMA:-$1}
6
+target=${INPUT_VALIDATION:-$2}
7
-if [ -n "${INPUT_STRICT}" ]
8
+if [ -n "${INPUT_STRICT:-''}" ]
9
then
10
strict='--strict'
11
fi
12
-yamale --schema ${INPUT_SCHEMA:-$1} ${INPUT_VALIDATION:-$2} $strict
13
+if [ ! -e $target ]
14
+then
15
+ >&2 echo "Target does not exist: $target"
16
+ exit 1
17
+fi
18
+
19
+yamale --schema=${schema} $target $strict
0 commit comments