From: Felipe Contreras Date: Wed, 12 May 2021 22:27:59 GMT Subject: [PATCH 4/8] doc: simplify the handling of interruptions Message-ID: <20210512222803.508446-5-felipe.contreras@gmail.com> In-Reply-To: <20210512222803.508446-1-felipe.contreras@gmail.com> There's no need to have an intermediary file. Signed-off-by: Felipe Contreras --- Documentation/asciidoc-helper.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/asciidoc-helper.sh b/Documentation/asciidoc-helper.sh index ae16cf9288..8dbe4fc372 100755 --- a/Documentation/asciidoc-helper.sh +++ b/Documentation/asciidoc-helper.sh @@ -13,6 +13,5 @@ while [ $# -gt 1 ]; do shift done -rm -f "$out+" "$out" && -"${args[@]}" -o "$out+" "$1" && -mv "$out+" "$out" +"${args[@]}" -o "$out" "$1" || +{ rm -f "$out"; false; } -- 2.31.1