lib/caretaker.rb in caretaker-0.2.0 vs lib/caretaker.rb in caretaker-0.3.0

- old
+ new

@@ -571,20 +571,20 @@ def init_repo cmd = @executable.to_s cmd += " -a #{@author}" unless @author.nil? cmd += ' -e' if @enable_categories - cmd += " -m #{@min_words}" unless @min_words.nil? cmd += ' -r' if @remove_categories cmd += ' -s' if @silent cmd += ' -v' if @verify_urls + cmd += " -w #{@min_words}" unless @min_words.nil? puts "> #{@name} is creating a custom post-commit hook" unless @silent start_spinner('Generating Hook') contents = <<~END_OF_SCRIPT #!/usr/bin/env bash -LOCKFULE="#{@repo_base_dir}/.lock" +LOCKFILE="#{@repo_base_dir}/.lock" if [[ -f "${LOCKFILE}" ]]; then exit fi