mirror of
https://github.com/github/octodns.git
synced 2024-05-11 05:55:00 +00:00
Quote variable to prevent globbing, word splitting in .git_hooks_pre-commit
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user