Merge remote-tracking branch 'tor-github/pr/862'

This commit is contained in:
teor 2019-04-09 11:36:12 +10:00
commit 2dab7a1078
No known key found for this signature in database
GPG Key ID: 10FEAA0E7075672A
2 changed files with 5 additions and 3 deletions

2
changes/bug29926 Normal file
View File

@ -0,0 +1,2 @@
o Code simplification and refactoring (shell scripts):
- Fix shellcheck warnings in asciidoc-helper.sh. Resolves issue 29926.

View File

@ -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
==================================