We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9dbfc8 commit 32e8252Copy full SHA for 32e8252
pre-receive
@@ -73,6 +73,15 @@ while read oldrev newrev refname; do
73
failures=`expr $failures + 1`
74
fi
75
76
+
77
+ #check hiera data (json) syntax
78
+ if [ $(echo $changedfile | grep -q '\.*.json$'; echo $?) -eq 0 ]; then
79
+ ${subhook_root}/json_syntax_check.sh $tmpmodule "${tmptree}/"
80
+ RC=$?
81
+ if [ "$RC" -ne 0 ]; then
82
+ failures=`expr $failures + 1`
83
+ fi
84
85
else
86
echo "ruby not installed. Skipping erb/yaml checks..."
87
0 commit comments