aboutsummaryrefslogtreecommitdiff
path: root/hack/markdown-preprocess-review
diff options
context:
space:
mode:
authorEd Santiago <santiago@redhat.com>2022-08-09 15:02:08 -0600
committerEd Santiago <santiago@redhat.com>2022-08-09 16:18:53 -0600
commit2bcee9f627b2cd1e3fe588b581aff05821f5841d (patch)
tree4a17d840d90e19057a517358986d6587610d2f6f /hack/markdown-preprocess-review
parent72679400b0cd7d059f20b2b84ee8b42306ce607a (diff)
downloadpodman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.tar.gz
podman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.tar.bz2
podman-2bcee9f627b2cd1e3fe588b581aff05821f5841d.zip
Man pages: refactor common options
Continued. Harder-to-review ones this time. Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'hack/markdown-preprocess-review')
-rwxr-xr-xhack/markdown-preprocess-review4
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");
}
}