Skip to content

Commit e1e6a22

Browse files
author
Jacob Sohl
committed
wrapped $1 variable to handle to handle long paths
1 parent 4334377 commit e1e6a22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

commit_hooks/json_syntax_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fi
1414

1515
# Check json file syntax
1616
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
17+
ruby -e "require 'json'; JSON.parse(File.read('$1'))" 2> $error_msg > /dev/null
1818
if [ $? -ne 0 ]; then
1919
cat $error_msg | sed -e "s/^/$(tput setaf 1)/" -e "s/$/$(tput sgr0)/"
2020
syntax_errors=`expr $syntax_errors + 1`

0 commit comments

Comments
 (0)