Skip to content

Commit cf7b0d1

Browse files
typicodeAndrei Kazakou
and
Andrei Kazakou
authoredApr 24, 2019
Use . instead of source (#480)
Co-authored-by: Andrei Kazakou <andrei.k@geomotiv.com>
1 parent b93ab54 commit cf7b0d1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎src/installer/__tests__/__snapshots__/getScript.ts.snap

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ -f \\"$scriptPath\\" ]; then
3333
# fi
3434
if [ -f ~/.huskyrc ]; then
3535
debug \\"source ~/.huskyrc\\"
36-
source ~/.huskyrc
36+
. ~/.huskyrc
3737
fi
3838
node_modules/run-node/run-node \\"$scriptPath\\" $hookName \\"$gitParams\\"
3939
else
@@ -72,7 +72,7 @@ if [ -f \\"$scriptPath\\" ]; then
7272
# fi
7373
if [ -f ~/.huskyrc ]; then
7474
debug \\"source ~/.huskyrc\\"
75-
source ~/.huskyrc
75+
. ~/.huskyrc
7676
fi
7777
node \\"$scriptPath\\" $hookName \\"$gitParams\\"
7878
else

‎src/installer/getScript.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ if [ -f "$scriptPath" ]; then
6666
# fi
6767
if [ -f ${huskyrc} ]; then
6868
debug "source ${huskyrc}"
69-
source ${huskyrc}
69+
. ${huskyrc}
7070
fi
7171
${node} "$scriptPath" $hookName "$gitParams"
7272
else

0 commit comments

Comments
 (0)
Please sign in to comment.