mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
check for no links in link file and fail if not pull request
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user