Skip to content

Commit

Permalink
Fixes $github-pages health-check NoMethodError
Browse files Browse the repository at this point in the history
  • Loading branch information
edward committed Apr 2, 2023
1 parent 07c8509 commit 3874930
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 3874930

Please sign in to comment.