diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-08-10 10:20:45 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 10:20:45 +0000 |
commit | c4a35313c93b4384766af914bd1241bb77ebdbe5 (patch) | |
tree | 3f8ae6fd22ad1065d4df83ab6f717cf7497f6ca7 /hack/markdown-preprocess-review | |
parent | 84502fc1447867aba66ea6725e22bb57cddce42c (diff) | |
parent | 2bcee9f627b2cd1e3fe588b581aff05821f5841d (diff) | |
download | podman-c4a35313c93b4384766af914bd1241bb77ebdbe5.tar.gz podman-c4a35313c93b4384766af914bd1241bb77ebdbe5.tar.bz2 podman-c4a35313c93b4384766af914bd1241bb77ebdbe5.zip |
Merge pull request #15260 from edsantiago/docs_dedup_continued
Man pages: refactor common options
Diffstat (limited to 'hack/markdown-preprocess-review')
-rwxr-xr-x | hack/markdown-preprocess-review | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hack/markdown-preprocess-review b/hack/markdown-preprocess-review index e8b042e94..a487265ad 100755 --- a/hack/markdown-preprocess-review +++ b/hack/markdown-preprocess-review @@ -26,7 +26,7 @@ while (my $line = <$git_diff>) { if ($line =~ s/^-####\s+//) { $line =~ /^\*\*--(\S+?)\*\*/ or die "$ME: in $newname: weird '$line'"; - $changed{$newname}{$1}{name} = $1; + $changed{$newname}{$1}{name} //= $1; } # Usually the same, but not for host.container and host.pod.md elsif ($line =~ /^\+\@\@option\s+(\S+)/) { @@ -86,7 +86,7 @@ for my $md_file (sort keys %changed) { or die "$ME: Error writing $outfile: $!\n"; my $new_text = "$DSM/options/$changed{$md_file}{$opt}{name}.md"; - die "$ME: File does not exist: $new_text\n" if ! -e $new_text; + die "$ME: $md_file: File does not exist: $new_text\n" if ! -e $new_text; system('cp', $new_text, "$d/zzz-chosen.md"); } } |