diff --git a/lib/cijoe.rb b/lib/cijoe.rb index 93b2bd1..0b3a8a4 100644 --- a/lib/cijoe.rb +++ b/lib/cijoe.rb @@ -117,7 +117,7 @@ def git_user_and_project # massage our repo def run_hook(hook) - if File.exists?(file='.git/hooks/#{hook}') && File.executable?(file) + if File.exists?(file=".git/hooks/#{hook}") && File.executable?(file) `sh #{file}` end end