commit_hookr 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/bin/hookr +3 -1
  2. metadata +2 -2
data/bin/hookr CHANGED
@@ -9,6 +9,8 @@ require "fileutils"
9
9
 
10
10
  FileUtils.cp("#{File.dirname(__FILE__)}/../lib/templates/commit-msg.rb", "#{FileUtils.pwd}/.git/hooks/commit-msg")
11
11
  FileUtils.chmod 0755, "#{FileUtils.pwd}/.git/hooks/commit-msg"
12
- FileUtils.cp("#{File.dirname(__FILE__)}/../lib/templates/#{ARGV[0]}.rb", "#{FileUtils.pwd}/.hookr")
12
+ unless File.exist?("#{FileUtils.pwd}/.hookr")
13
+ FileUtils.cp("#{File.dirname(__FILE__)}/../lib/templates/#{ARGV[0]}.rb", "#{FileUtils.pwd}/.hookr")
14
+ end
13
15
 
14
16
  puts "Yo dawg I herd u like commit hooks, so I put some files in ur directories."
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Bumann