diff --git a/README.md b/README.md index db1259c2..98b98343 100644 --- a/README.md +++ b/README.md @@ -6,4 +6,4 @@ A framework for managing and maintaining multi-language pre-commit hooks. -For more information see: https://pre-commit.com/ +For more information see: diff --git a/pre_commit/resources/hook-tmpl b/pre_commit/resources/hook-tmpl index 53d29f95..3295e599 100755 --- a/pre_commit/resources/hook-tmpl +++ b/pre_commit/resources/hook-tmpl @@ -15,6 +15,6 @@ if [ -x "$INSTALL_PYTHON" ]; then elif command -v pre-commit > /dev/null; then exec pre-commit "${ARGS[@]}" else - echo '`pre-commit` not found. Did you forget to activate your virtualenv?' 1>&2 + echo "\`pre-commit\` not found. Did you forget to activate your virtualenv?" 1>&2 exit 1 fi diff --git a/testing/resources/modified_file_returns_zero_repo/bin/hook.sh b/testing/resources/modified_file_returns_zero_repo/bin/hook.sh index 98b05f94..3c6c0308 100755 --- a/testing/resources/modified_file_returns_zero_repo/bin/hook.sh +++ b/testing/resources/modified_file_returns_zero_repo/bin/hook.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -for f in $@; do +for f in "$@"; do # Non UTF-8 bytes echo -e '\x01\x97' > "$f" echo "Modified: $f!" diff --git a/testing/resources/modified_file_returns_zero_repo/bin/hook3.sh b/testing/resources/modified_file_returns_zero_repo/bin/hook3.sh index 3180eb3c..7bc6ffcb 100755 --- a/testing/resources/modified_file_returns_zero_repo/bin/hook3.sh +++ b/testing/resources/modified_file_returns_zero_repo/bin/hook3.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -for f in $@; do +for f in "$@"; do # Non UTF-8 bytes echo -e '\x01\x97' > "$f" done