Skip to content

Commit

Permalink
Merge pull request #878 from edward/patch-1
Browse files Browse the repository at this point in the history
Fixes `$github-pages health-check` NoMethodError
  • Loading branch information
yoannchaudet committed Dec 28, 2023
2 parents 18fb4b9 + 3874930 commit fe6c454
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/github-pages
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Mercenary.program(:"github-pages") do |p|
c.action do |args, options|
require 'github-pages-health-check'
cname_path = File.expand_path "CNAME", Dir.pwd
raise "No CNAME file found in current directory" unless File.exists?(cname_path)
raise "No CNAME file found in current directory" unless File.exist?(cname_path)
cname = File.open(cname_path).read.strip
check = GitHubPages::HealthCheck.check(cname)
puts "Checking domain #{cname}..."
Expand Down

0 comments on commit fe6c454

Please sign in to comment.