Skip to content

Commit fa3a7d7

Browse files
guidoschefflertypicode
authored andcommitted
support spaces in path to husky.local.sh (#658)
* support spaces in path to husky.local.sh added quotes to achieve that * updates snapshot test
1 parent 9891528 commit fa3a7d7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sh/husky.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if [ "$HUSKY_SKIP_HOOKS" = "true" ] || [ "$HUSKY_SKIP_HOOKS" = "1" ]; then
5353
fi
5454

5555
# Source user var and change directory
56-
. "$(dirname $0)/husky.local.sh"
56+
. "$(dirname "$0")/husky.local.sh"
5757
debug "Current working directory is $(pwd)"
5858

5959
# Skip fast if hookName is not defined

src/installer/__tests__/__snapshots__/scripts.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ if [ \\"$HUSKY_SKIP_HOOKS\\" = \\"true\\" ] || [ \\"$HUSKY_SKIP_HOOKS\\" = \\"1\
8282
fi
8383
8484
# Source user var and change directory
85-
. \\"$(dirname $0)/husky.local.sh\\"
85+
. \\"$(dirname \\"$0\\")/husky.local.sh\\"
8686
debug \\"Current working directory is $(pwd)\\"
8787
8888
# Skip fast if hookName is not defined

0 commit comments

Comments
 (0)