mirror of
https://github.com/curl/curl.git
synced 2026-07-15 23:47:16 +03:00
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:
parent
011325ff29
commit
3e57bc2a84
1 changed files with 3 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue