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:
parent
86f6c7929e
commit
84309d7071
@ -1650,7 +1650,6 @@ support/dependencies/check-host-xzcat.sh Shellcheck
|
|||||||
support/dependencies/dependencies.sh Shellcheck
|
support/dependencies/dependencies.sh Shellcheck
|
||||||
support/download/bzr Shellcheck lib_shellscript.ConsecutiveEmptyLines
|
support/download/bzr Shellcheck lib_shellscript.ConsecutiveEmptyLines
|
||||||
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