0001-oneimage-try-to-catch-mistakes-by-refusing-image-tem.patch
| src/cli/oneimage | ||
|---|---|---|
| 299 | 299 |
end |
| 300 | 300 | |
| 301 | 301 |
def get_template(template_path) |
| 302 |
if File.size?(ARGV[0]) > 1048576 |
|
| 303 |
puts "Template #{ARGV[0]} is a very large file, this looks like a mistake"
|
|
| 304 |
exit -1 |
|
| 305 |
end |
|
| 306 |
|
|
| 302 | 307 |
begin |
| 303 | 308 |
template = File.read(ARGV[0]) |
| 304 | 309 |
rescue |
| 305 |
- |
|