bin/genZPK in genZPK-0.1.13 vs bin/genZPK in genZPK-0.1.14
- old
+ new
@@ -226,16 +226,16 @@
puts "All checks passed. Continuing..."
puts "\n\n"
-puts "Verifying subdomains"
-puts "-" * 80
+if not subdomainChecks.nil?
+ puts "Verifying subdomains"
+ puts "-" * 80
-successes = 0
+ successes = 0
-if not subdomainChecks.nil?
# For every subdomain to check
for i in 0..(subdomainChecks.size - 1)
check = subdomainChecks[i]
path = check["path"]
@@ -324,18 +324,18 @@
display << "\tFile not found: #{dir + path}"
puts display
puts "-" * 80
end
end
-end
-#Check to see if all the subdomains passed. If they didn't, exit.
-if not successes == subdomainChecks.size
- puts "#{successes} of #{subdomainChecks.size} subdomains passed. Please check files listed above and try again."
- exit -1
-end
+ #Check to see if all the subdomains passed. If they didn't, exit.
+ if not successes == subdomainChecks.size
+ puts "#{successes} of #{subdomainChecks.size} subdomains passed. Please check files listed above and try again."
+ exit -1
+ end
-puts "All subdomains passed. Continuing...\n"
+ puts "All subdomains passed. Continuing...\n"
+end
# Ensure the /scripts directory exists in the working directory
if not File.exists? dir + "/scripts"
FileUtils.mkpath dir + "/scripts"
end
\ No newline at end of file