cd2nroff: fix duplicate output issue
Assisted-by: Jay Satiro Fixes https://github.com/curl/curl-www/issues/321 Closes #12818
This commit is contained in:
Родитель
011325ff29
Коммит
3e57bc2a84
|
@ -337,14 +337,12 @@ sub single {
|
|||
return $errors;
|
||||
}
|
||||
|
||||
$f = $ARGV[0];
|
||||
if(defined($f)) {
|
||||
while($f) {
|
||||
$r = single($f);
|
||||
if(@ARGV) {
|
||||
for my $f (@ARGV) {
|
||||
my $r = single($f);
|
||||
if($r) {
|
||||
exit $r;
|
||||
}
|
||||
$f = shift @ARGV;
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
|
Загрузка…
Ссылка в новой задаче