File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ if ! command -v node >/dev/null 2>&1; then
28
28
echo \\"Can't find node in PATH, trying to find a node binary on your system\\"
29
29
fi
30
30
31
- if [ -f $scriptPath ]; then
31
+ if [ -f \\" $scriptPath\\" ]; then
32
32
if [ -f ~/.huskyrc ]; then
33
33
debug \\"source ~/.huskyrc\\"
34
34
source ~/.huskyrc
35
35
fi
36
- node_modules/run-node/run-node $scriptPath $hookName \\"$gitParams\\"
36
+ node_modules/run-node/run-node \\" $scriptPath\\" $hookName \\"$gitParams\\"
37
37
else
38
38
echo \\"Can't find Husky, skipping $hookName hook\\"
39
39
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
@@ -65,12 +65,12 @@ debug() {
65
65
66
66
debug \\"$hookName hook started...\\"
67
67
68
- if [ -f $scriptPath ]; then
68
+ if [ -f \\" $scriptPath\\" ]; then
69
69
if [ -f ~/.huskyrc ]; then
70
70
debug \\"source ~/.huskyrc\\"
71
71
source ~/.huskyrc
72
72
fi
73
- node $scriptPath $hookName \\"$gitParams\\"
73
+ node \\" $scriptPath\\" $hookName \\"$gitParams\\"
74
74
else
75
75
echo \\"Can't find Husky, skipping $hookName hook\\"
76
76
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
Original file line number Diff line number Diff line change 63
63
`
64
64
: ''
65
65
}
66
- if [ -f $scriptPath ]; then
66
+ if [ -f " $scriptPath" ]; then
67
67
if [ -f ${ huskyrc } ]; then
68
68
debug "source ${ huskyrc } "
69
69
source ${ huskyrc }
70
70
fi
71
- ${ node } $scriptPath $hookName "$gitParams"
71
+ ${ node } " $scriptPath" $hookName "$gitParams"
72
72
else
73
73
echo "Can't find Husky, skipping $hookName hook"
74
74
echo "You can reinstall it using 'npm install husky --save-dev' or delete this hook"
You can’t perform that action at this time.
0 commit comments