Merge pull request from antiochp/git_commit_hook_fix

fix the bash array loop
This commit is contained in:
Ignotus Peverell 2017-12-20 20:51:31 +00:00 committed by GitHub
commit c5a055db1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ if [ $result != 0 ]; then
printf "\033[0;31mfail\033[0m \n"
printf "[pre_commit] the following files need formatting: \n"
for file in $problem_files; do
for file in ${problem_files[@]}; do
printf " cargo +nightly fmt -- $file\n"
done
else