By using the "use_config" for minconfig and addconfig we risk
trying to copy itself to itself, which will cause an unexpected failure.
Use a different name instead.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
$minconfig = $addconfig;
} elsif (defined($addconfig)) {
- run_command "cat $addconfig $minconfig > $tmpdir/use_config" or
+ run_command "cat $addconfig $minconfig > $tmpdir/add_config" or
dodie "Failed to create temp config";
- $minconfig = "$tmpdir/use_config";
+ $minconfig = "$tmpdir/add_config";
}
my $checkout = $opt{"CHECKOUT[$i]"};