Report renumber fixes
This commit is contained in:
@@ -40,10 +40,13 @@ files.each do |file|
|
||||
end
|
||||
end
|
||||
|
||||
if content != updated
|
||||
warn "Links in #{file} are not in order"
|
||||
|
||||
if fix
|
||||
File.write(file, updated)
|
||||
elsif content != updated
|
||||
warn "Links in #{file} are not in order"
|
||||
else
|
||||
exit 1
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user