Skip to content

Commit

Permalink
Fix whitespace in project folder name issue (#423)
Browse files Browse the repository at this point in the history
Co-Authored-By: klmdb <klmdb@users.noreply.github.com>
  • Loading branch information
klmdb authored and typicode committed Dec 13, 2018
1 parent d43f813 commit aabd390
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/installer/__tests__/__snapshots__/getScript.ts.snap
Expand Up @@ -28,12 +28,12 @@ if ! command -v node >/dev/null 2>&1; then
echo \\"Can't find node in PATH, trying to find a node binary on your system\\"
fi
if [ -f $scriptPath ]; then
if [ -f \\"$scriptPath\\" ]; then
if [ -f ~/.huskyrc ]; then
debug \\"source ~/.huskyrc\\"
source ~/.huskyrc
fi
node_modules/run-node/run-node $scriptPath $hookName \\"$gitParams\\"
node_modules/run-node/run-node \\"$scriptPath\\" $hookName \\"$gitParams\\"
else
echo \\"Can't find Husky, skipping $hookName hook\\"
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
Expand Down Expand Up @@ -65,12 +65,12 @@ debug() {
debug \\"$hookName hook started...\\"
if [ -f $scriptPath ]; then
if [ -f \\"$scriptPath\\" ]; then
if [ -f ~/.huskyrc ]; then
debug \\"source ~/.huskyrc\\"
source ~/.huskyrc
fi
node $scriptPath $hookName \\"$gitParams\\"
node \\"$scriptPath\\" $hookName \\"$gitParams\\"
else
echo \\"Can't find Husky, skipping $hookName hook\\"
echo \\"You can reinstall it using 'npm install husky --save-dev' or delete this hook\\"
Expand Down
4 changes: 2 additions & 2 deletions src/installer/getScript.ts
Expand Up @@ -63,12 +63,12 @@ fi
`
: ''
}
if [ -f $scriptPath ]; then
if [ -f "$scriptPath" ]; then
if [ -f ${huskyrc} ]; then
debug "source ${huskyrc}"
source ${huskyrc}
fi
${node} $scriptPath $hookName "$gitParams"
${node} "$scriptPath" $hookName "$gitParams"
else
echo "Can't find Husky, skipping $hookName hook"
echo "You can reinstall it using 'npm install husky --save-dev' or delete this hook"
Expand Down

0 comments on commit aabd390

Please sign in to comment.