diff --git a/.npm/bin/lefthook-linux b/.npm/bin/lefthook-linux index eec90490..4f4176ab 100755 Binary files a/.npm/bin/lefthook-linux and b/.npm/bin/lefthook-linux differ diff --git a/.npm/bin/lefthook-mac b/.npm/bin/lefthook-mac index ad444021..4dcd365a 100755 Binary files a/.npm/bin/lefthook-mac and b/.npm/bin/lefthook-mac differ diff --git a/.npm/bin/lefthook-win.exe b/.npm/bin/lefthook-win.exe index 4887113b..d7b802ec 100755 Binary files a/.npm/bin/lefthook-win.exe and b/.npm/bin/lefthook-win.exe differ diff --git a/.npm/package.json b/.npm/package.json index 31c64472..63a19850 100644 --- a/.npm/package.json +++ b/.npm/package.json @@ -1,6 +1,6 @@ { "name": "@arkweid/lefthook", - "version": "0.5.4", + "version": "0.5.5", "description": "Simple git hooks manager", "main": "index.js", "bin": { diff --git a/.rubygems/lefthook.gemspec b/.rubygems/lefthook.gemspec index c33479c0..355b0999 100644 --- a/.rubygems/lefthook.gemspec +++ b/.rubygems/lefthook.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = "lefthook" - spec.version = "0.5.4" + spec.version = "0.5.5" spec.authors = ["A.A.Abroskin"] spec.email = ["arkweid@evilmartians.com"] diff --git a/.rubygems/libexec/lefthook-linux b/.rubygems/libexec/lefthook-linux index eec90490..4f4176ab 100755 Binary files a/.rubygems/libexec/lefthook-linux and b/.rubygems/libexec/lefthook-linux differ diff --git a/.rubygems/libexec/lefthook-mac b/.rubygems/libexec/lefthook-mac index ad444021..4dcd365a 100755 Binary files a/.rubygems/libexec/lefthook-mac and b/.rubygems/libexec/lefthook-mac differ diff --git a/.rubygems/libexec/lefthook-win.exe b/.rubygems/libexec/lefthook-win.exe index 4887113b..d7b802ec 100755 Binary files a/.rubygems/libexec/lefthook-win.exe and b/.rubygems/libexec/lefthook-win.exe differ diff --git a/cmd/add.go b/cmd/add.go index a66f2ad6..a8d7de08 100644 --- a/cmd/add.go +++ b/cmd/add.go @@ -65,7 +65,7 @@ func addHook(hookName string, fs afero.Fs) { template := "#!/bin/bash\n" + autoInstall(hookName, fs) + "\n" + `# If can't find lefthook in global scope # we suppose it in local npm package -if ! type lefthook >/dev/null +if ! type lefthook >/dev/null 2>&1 then exec npx lefthook run ` + hookName + " $@\nelse\n exec lefthook run " + hookName + " $@\nfi\n" diff --git a/cmd/version.go b/cmd/version.go index 814fe81d..7b1af7aa 100644 --- a/cmd/version.go +++ b/cmd/version.go @@ -7,7 +7,7 @@ import ( ) const ( - version string = "0.5.4" + version string = "0.5.5" ) // versionCmd represents the version command