From 191ede503851687f7694192ee1f47d5516a75a3b Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Mon, 24 Oct 2016 09:26:27 +0800 Subject: 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 --- automated/lib/sh-test-lib | 3 +++ 1 file changed, 3 insertions(+) (limited to 'automated/lib') 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) -- cgit v1.2.3