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.
2 parents 4334377 + e1e6a22 commit 7f4c0a2Copy full SHA for 7f4c0a2
commit_hooks/json_syntax_check.sh
@@ -14,7 +14,7 @@ fi
14
15
# Check json file syntax
16
echo -e "$(tput setaf 6)Checking json syntax for $module_path...$(tput sgr0)"
17
-ruby -e "require 'json'; JSON.parse(File.read($1))" 2> $error_msg > /dev/null
+ruby -e "require 'json'; JSON.parse(File.read('$1'))" 2> $error_msg > /dev/null
18
if [ $? -ne 0 ]; then
19
cat $error_msg | sed -e "s/^/$(tput setaf 1)/" -e "s/$/$(tput sgr0)/"
20
syntax_errors=`expr $syntax_errors + 1`
0 commit comments