There's no need to have an intermediary file.
Signed-off-by: Felipe Contreras <felipe.contreras@xxxxxxxxx>
---
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