support/download/cvs: fix shellcheck

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 84309d7071)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Yann E. MORIN 2024-06-05 19:53:19 +02:00 committed by Peter Korsgaard
parent 6ec2b2cad4
commit c091bd89cf
2 changed files with 2 additions and 2 deletions

View File

@ -1439,7 +1439,6 @@ support/dependencies/check-host-xzcat.sh Shellcheck
support/dependencies/dependencies.sh Shellcheck
support/download/bzr ConsecutiveEmptyLines Shellcheck
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} "${@}"
}