check for no links in link file and fail if not pull request

This commit is contained in:
Dave Machado committed 2017-07-21 14:59:33 -04:00
1 parent ab5d27c575
commit 90e4670ce4
2 files changed
+7

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ raw_links.each do |link|
links.push(link)
end
end
if links.length <= 0
puts "no links to check"
exit(0)
end
fails = []
# Fail on any duplicate elements
dup = links.select{|element| links.count(element) > 1}