Skip to content

Commit

Permalink
move cwd debug message to shell script
Browse files Browse the repository at this point in the history
In case JS code can't be run
  • Loading branch information
typicode committed Oct 12, 2019
1 parent a383180 commit 059e59f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/installer/__tests__/__snapshots__/getScript.ts.snap
Expand Up @@ -25,6 +25,7 @@ debug() {
debug \\"husky v3.0.8 (created at <locale date string>)\\"
debug \\"$hookName hook started\\"
debug \\"Current working directory is '\`pwd\`'\\"
if [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"true\\" ] || [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"1\\" ]; then
debug \\"HUSKY_SKIP_HOOKS is set to \${HUSKY_SKIP_HOOKS}, skipping hook\\"
Expand Down Expand Up @@ -82,6 +83,7 @@ debug() {
debug \\"husky v3.0.8 (created at <locale date string>)\\"
debug \\"$hookName hook started\\"
debug \\"Current working directory is '\`pwd\`'\\"
if [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"true\\" ] || [ \\"\${HUSKY_SKIP_HOOKS}\\" = \\"1\\" ]; then
debug \\"HUSKY_SKIP_HOOKS is set to \${HUSKY_SKIP_HOOKS}, skipping hook\\"
Expand Down
1 change: 1 addition & 0 deletions src/installer/getScript.ts
Expand Up @@ -54,6 +54,7 @@ debug() {
debug "husky v${version} (created at ${createdAt})"
debug "$hookName hook started"
debug "Current working directory is '\`pwd\`'"
if [ "$\{HUSKY_SKIP_HOOKS}" = "true" ] || [ "$\{HUSKY_SKIP_HOOKS}" = "1" ]; then
debug "HUSKY_SKIP_HOOKS is set to $\{HUSKY_SKIP_HOOKS}, skipping hook"
Expand Down
4 changes: 0 additions & 4 deletions src/runner/bin.ts
@@ -1,10 +1,6 @@
import index from './'
import debug from '../debug'
import { checkGitDirEnv } from '../checkGitDirEnv'

// Debug
debug(`Current working directory is '${process.cwd()}'`)

// Check GIT_DIR environment variable
checkGitDirEnv()

Expand Down

0 comments on commit 059e59f

Please sign in to comment.