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:
parent
6ec2b2cad4
commit
c091bd89cf
@ -1439,7 +1439,6 @@ support/dependencies/check-host-xzcat.sh Shellcheck
|
|||||||
support/dependencies/dependencies.sh Shellcheck
|
support/dependencies/dependencies.sh Shellcheck
|
||||||
support/download/bzr ConsecutiveEmptyLines Shellcheck
|
support/download/bzr ConsecutiveEmptyLines Shellcheck
|
||||||
support/download/cargo-post-process Shellcheck
|
support/download/cargo-post-process Shellcheck
|
||||||
support/download/cvs Shellcheck
|
|
||||||
support/download/dl-wrapper Shellcheck
|
support/download/dl-wrapper Shellcheck
|
||||||
support/download/file Shellcheck
|
support/download/file Shellcheck
|
||||||
support/download/go-post-process Shellcheck
|
support/download/go-post-process Shellcheck
|
||||||
|
@ -40,12 +40,13 @@ shift $((OPTIND-1)) # Get rid of our options
|
|||||||
# 10 minutes should do the trick.
|
# 10 minutes should do the trick.
|
||||||
_cvs() {
|
_cvs() {
|
||||||
if [ -z "${quiet}" ]; then
|
if [ -z "${quiet}" ]; then
|
||||||
printf '%s ' timeout 10m ${CVS} "${@}"; printf '\n'
|
printf '%s ' timeout 10m "${CVS}" "${@}"; printf '\n'
|
||||||
fi
|
fi
|
||||||
_plain_cvs "$@"
|
_plain_cvs "$@"
|
||||||
}
|
}
|
||||||
# Note: please keep command below aligned with what is printed above
|
# Note: please keep command below aligned with what is printed above
|
||||||
_plain_cvs() {
|
_plain_cvs() {
|
||||||
|
# shellcheck disable=SC2086 # We really want word splitting in CVS
|
||||||
eval timeout 10m ${CVS} "${@}"
|
eval timeout 10m ${CVS} "${@}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user