Browse Source

Quote variable to prevent globbing, word splitting in .git_hooks_pre-commit

pull/653/head
Peter Dave Hello 5 years ago
parent
commit
0fad8fa0d9
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      .git_hooks_pre-commit

+ 6
- 6
.git_hooks_pre-commit View File

@ -2,10 +2,10 @@
set -e
HOOKS=$(dirname $0)
GIT=$(dirname $HOOKS)
ROOT=$(dirname $GIT)
HOOKS=$(dirname "$0")
GIT=$(dirname "$HOOKS")
ROOT=$(dirname "$GIT")
. $ROOT/env/bin/activate
$ROOT/script/lint
$ROOT/script/coverage
. "$ROOT/env/bin/activate"
"$ROOT/script/lint"
"$ROOT/script/coverage"

Loading…
Cancel
Save