summaryrefslogtreecommitdiff
path: root/automated/lib
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2016-10-24 09:26:27 +0800
committerChase Qi <chase.qi@linaro.org>2016-10-24 09:26:27 +0800
commit191ede503851687f7694192ee1f47d5516a75a3b (patch)
treec26e886ce3408b5b0804b4c8405556abe259adcd /automated/lib
parent4f8fce4898b4bc735c06547c2afa321aecfe78cb (diff)
v2: sh-test-lib: disable shellcheck SC2086 on install_deps function
SC2086 - Double quote to prevent globbing and word splitting. "${pkgs}" stands for a single package, not a list of packages. When multiple packages defined in the variable, quotes on it needs to be removed. Change-Id: I972df969ba3f388fe5582a6099baacda1db24cdd Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated/lib')
-rwxr-xr-xautomated/lib/sh-test-lib3
1 files changed, 3 insertions, 0 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib
index 44f59fe..563521f 100755
--- a/automated/lib/sh-test-lib
+++ b/automated/lib/sh-test-lib
@@ -128,12 +128,15 @@ install_deps() {
Debian|Ubuntu)
# Use the default answers for all questions.
DEBIAN_FRONTEND=noninteractive apt-get update -q -y
+ # shellcheck disable=SC2086
DEBIAN_FRONTEND=noninteractive apt-get install -q -y ${pkgs}
;;
CentOS)
+ # shellcheck disable=SC2086
yum -e 0 -y install ${pkgs}
;;
Fedora)
+ # shellcheck disable=SC2086
dnf -e 0 -y install ${pkgs}
;;
Unknown)