]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Fix SC2086 warnings in asciidoc-helper.sh
authorrl1987 <rl1987@sdf.lonestar.org>
Wed, 27 Mar 2019 17:27:57 +0000 (19:27 +0200)
committerrl1987 <rl1987@sdf.lonestar.org>
Wed, 27 Mar 2019 17:27:57 +0000 (19:27 +0200)
changes/bug29926 [new file with mode: 0644]
doc/asciidoc-helper.sh

diff --git a/changes/bug29926 b/changes/bug29926
new file mode 100644 (file)
index 0000000..ab1417c
--- /dev/null
@@ -0,0 +1,2 @@
+  o Code simplification and refactoring (shell scripts):
+    - Fix shellcheck warnings in asciidoc-helper.sh. Resolves issue 29926.
index a3ef53f8840618c300597b477ca978e37357ffdd..765850a125c3aff933286481c5986671e36363ee 100755 (executable)
@@ -19,7 +19,7 @@ if [ "$1" = "html" ]; then
     base=${output%%.html.in}
 
     if [ "$2" != none ]; then
-      TZ=UTC "$2" -d manpage -o $output $input;
+      TZ=UTC "$2" -d manpage -o "$output" "$input";
     else
       echo "==================================";
       echo;
@@ -44,8 +44,8 @@ elif [ "$1" = "man" ]; then
       echo "==================================";
       exit 1;
     fi
-    if "$2" -f manpage $input; then
-      mv $base.1 $output;
+    if "$2" -f manpage "$input"; then
+      mv "$base.1" "$output";
     else
       cat<<EOF
 ==================================