mirror of
https://github.com/linuxboot/heads.git
synced 2025-02-11 13:15:17 +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;
|
print $ffs;
|
||||||
} else {
|
} else {
|
||||||
open OUTPUT, $output
|
open OUTPUT, ">", $output
|
||||||
or die "$output: Unable to open: $!\n";
|
or die "$output: Unable to open: $!\n";
|
||||||
|
|
||||||
print OUTPUT $ffs;
|
print OUTPUT $ffs;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user