diff options
author | Bruno Haible <bruno@clisp.org> | 2022-07-23 13:31:20 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2022-07-23 13:31:20 +0200 |
commit | 27957b76186707575ae38f5fc515629c40cbfaaa (patch) | |
tree | ddc13d390ff2c87941c7ab7e5cd02fa5dd51dcbc /build-aux/bootstrap | |
parent | 82942a6e8382836b0feaa81d6fec046cd622a7c1 (diff) | |
download | gnulib-27957b76186707575ae38f5fc515629c40cbfaaa.tar.gz |
Fix a couple of ShellCheck warnings.
* MODULES.html.sh (sed_escape_slash): Remove unused variable.
* build-aux/bootstrap: Avoid computed printf format strings.
* build-aux/do-release-commit-and-tag: Likewise.
* build-aux/gendocs.sh: Likewise.
* build-aux/declared.sh: Fix "unrecognized option" message.
* gnulib-tool (supplied_opts): Remove unused variable.
(--single-con): Remove redundant option recognition.
* tests/test-parse-duration.sh (nl): Remove unused variable.
* tests/test-update-copyright.sh: Use double-quotes instead of
single-quotes.
Diffstat (limited to 'build-aux/bootstrap')
-rwxr-xr-x | build-aux/bootstrap | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/bootstrap b/build-aux/bootstrap index 76bda0836c..86a0ac6d6f 100755 --- a/build-aux/bootstrap +++ b/build-aux/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh # Print a version string. -scriptversion=2022-07-18.17; # UTC +scriptversion=2022-07-23.11; # UTC # Bootstrap this package from checked-out sources. @@ -533,7 +533,7 @@ sort_ver() { # sort -V is not generally available elif [ "$p2" -gt "$p1" ] 2>/dev/null; then # numeric comparison echo "$1 $2" else # numeric, then lexicographic comparison - lp=$(printf "$p1\n$p2\n" | LANG=C sort -n | tail -n1) + lp=$(printf "%s\n%s\n" "$p1" "$p2" | LANG=C sort -n | tail -n1) if [ "$lp" = "$p2" ]; then echo "$1 $2" else @@ -697,7 +697,7 @@ $buildreq" ;; esac fi -if ! printf "$buildreq" | check_versions; then +if ! printf '%s' "$buildreq" | check_versions; then echo >&2 if test -f README-prereq; then die "See README-prereq for how to get the prerequisite programs" |