mirror of
https://github.com/linuxboot/heads.git
synced 2025-01-29 15:44:07 +00:00
ensure that the output file is opened for output
This commit is contained in:
parent
ae2f11d4c3
commit
9d5c2b9e41
@ -180,7 +180,7 @@ if ($output eq '-')
|
||||
{
|
||||
print $ffs;
|
||||
} else {
|
||||
open OUTPUT, $output
|
||||
open OUTPUT, ">", $output
|
||||
or die "$output: Unable to open: $!\n";
|
||||
|
||||
print OUTPUT $ffs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user