diff --git a/triggers/git-coauthors/participant-joined b/triggers/git-coauthors/participant-joined index 82eea26..04842f5 100644 --- a/triggers/git-coauthors/participant-joined +++ b/triggers/git-coauthors/participant-joined @@ -5,7 +5,7 @@ name = ENV.fetch("TUPLE_TRIGGER_FULL_NAME") template_path = "#{Dir.home}/.gitmessage" line = "Co-Authored-By: #{name} <#{email}>" -exists = File.exists?(template_path) +exists = File.exist?(template_path) if exists && File.read(template_path).include?(line) exit 0 diff --git a/triggers/git-coauthors/participant-left b/triggers/git-coauthors/participant-left index 46a9b52..b060d10 100644 --- a/triggers/git-coauthors/participant-left +++ b/triggers/git-coauthors/participant-left @@ -4,7 +4,7 @@ email = ENV.fetch("TUPLE_TRIGGER_EMAIL") name = ENV.fetch("TUPLE_TRIGGER_FULL_NAME") template_path = "#{Dir.home}/.gitmessage" -if !File.exists?(template_path) +if !File.exist?(template_path) exit 0 end