support/download/cvs: fix shellcheck

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
This commit is contained in:
Yann E. MORIN 2024-06-05 19:53:19 +02:00 committed by Arnout Vandecappelle
parent 86f6c7929e
commit 84309d7071
2 changed files with 2 additions and 2 deletions

View File

@ -1650,7 +1650,6 @@ support/dependencies/check-host-xzcat.sh Shellcheck
support/dependencies/dependencies.sh Shellcheck
support/download/bzr Shellcheck lib_shellscript.ConsecutiveEmptyLines
support/download/cargo-post-process Shellcheck
support/download/cvs Shellcheck
support/download/dl-wrapper Shellcheck
support/download/file Shellcheck
support/download/go-post-process Shellcheck

View File

@ -40,12 +40,13 @@ shift $((OPTIND-1)) # Get rid of our options
# 10 minutes should do the trick.
_cvs() {
if [ -z "${quiet}" ]; then
printf '%s ' timeout 10m ${CVS} "${@}"; printf '\n'
printf '%s ' timeout 10m "${CVS}" "${@}"; printf '\n'
fi
_plain_cvs "$@"
}
# Note: please keep command below aligned with what is printed above
_plain_cvs() {
# shellcheck disable=SC2086 # We really want word splitting in CVS
eval timeout 10m ${CVS} "${@}"
}