Add exit condition
This commit is contained in:
1 parent
4206f34cf3
commit
2e6d999b48
1 file changed
+6
@@ -38,3 +38,9 @@ File.foreach(filename).with_index do |line, line_num|
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if fail_flag
|
||||
exit(1)
|
||||
else
|
||||
exit(0)
|
||||
end
|
||||
Reference in new issue
Block a user