diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-10-24 09:26:27 +0800 |
---|---|---|
committer | Chase Qi <chase.qi@linaro.org> | 2016-10-24 09:26:27 +0800 |
commit | 191ede503851687f7694192ee1f47d5516a75a3b (patch) | |
tree | c26e886ce3408b5b0804b4c8405556abe259adcd | |
parent | 4f8fce4898b4bc735c06547c2afa321aecfe78cb (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>
-rwxr-xr-x | automated/lib/sh-test-lib | 3 |
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) |