Skip to content

Commit

Permalink
Fix "[[: not found"
Browse files Browse the repository at this point in the history
  • Loading branch information
typicode committed Oct 11, 2018
1 parent 2c98004 commit ab4a28e
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 @@ -9,8 +9,8 @@ scriptPath=\\"node_modules/husky/run.js\\"
hookName=\`basename \\"$0\\"\`
gitParams=\\"$*\\"
if [[ ! -z \\"\${HUSKY_DEBUG}\\" ]]; then
echo \\"\\\\nhusky:debug $hookName hook started...\\\\n\\"
if [ \\"\${HUSKY_DEBUG}\\" = \\"true\\" ]; then
echo \\"husky:debug $hookName hook started...\\"
fi
if ! command -v node >/dev/null 2>&1; then
Expand All @@ -35,8 +35,8 @@ scriptPath=\\"node_modules/husky/run.js\\"
hookName=\`basename \\"$0\\"\`
gitParams=\\"$*\\"
if [[ ! -z \\"\${HUSKY_DEBUG}\\" ]]; then
echo \\"\\\\nhusky:debug $hookName hook started...\\\\n\\"
if [ \\"\${HUSKY_DEBUG}\\" = \\"true\\" ]; then
echo \\"husky:debug $hookName hook started...\\"
fi
if [ -f $scriptPath ]; then
Expand Down
4 changes: 2 additions & 2 deletions src/installer/getScript.ts
Expand Up @@ -22,8 +22,8 @@ scriptPath="${script}.js"
hookName=\`basename "$0"\`
gitParams="$*"
if [[ ! -z "$\{HUSKY_DEBUG\}" ]]; then
echo "\\nhusky:debug $hookName hook started...\\n"
if [ "$\{HUSKY_DEBUG\}" = "true" ]; then
echo "husky:debug $hookName hook started..."
fi
${
platform !== 'win32'
Expand Down

0 comments on commit ab4a28e

Please sign in to comment.