mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-30 15:43:32 +01:00
Fix SC2086 warnings in asciidoc-helper.sh
This commit is contained in:
parent
00ca3d04cf
commit
283ee0ba0a
2
changes/bug29926
Normal file
2
changes/bug29926
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
o Code simplification and refactoring (shell scripts):
|
||||||
|
- Fix shellcheck warnings in asciidoc-helper.sh. Resolves issue 29926.
|
@ -19,7 +19,7 @@ if [ "$1" = "html" ]; then
|
|||||||
base=${output%%.html.in}
|
base=${output%%.html.in}
|
||||||
|
|
||||||
if [ "$2" != none ]; then
|
if [ "$2" != none ]; then
|
||||||
TZ=UTC "$2" -d manpage -o $output $input;
|
TZ=UTC "$2" -d manpage -o "$output" "$input";
|
||||||
else
|
else
|
||||||
echo "==================================";
|
echo "==================================";
|
||||||
echo;
|
echo;
|
||||||
@ -44,8 +44,8 @@ elif [ "$1" = "man" ]; then
|
|||||||
echo "==================================";
|
echo "==================================";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if "$2" -f manpage $input; then
|
if "$2" -f manpage "$input"; then
|
||||||
mv $base.1 $output;
|
mv "$base.1" "$output";
|
||||||
else
|
else
|
||||||
cat<<EOF
|
cat<<EOF
|
||||||
==================================
|
==================================
|
||||||
|
Loading…
Reference in New Issue
Block a user