X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Fbaseline.sh;h=aae30d44b1e3be34881adf56e5646a8ef1fedde7;hb=2f92417dd159879ae1f9c52ee70054f4d2e38bc2;hp=978296bb577415ebdce3b32e4e0414dd720577d4;hpb=003835acd2d9e452ff4d6f829cbce441c5ebd82b;p=releng%2Fbuilder.git diff --git a/packer/provision/baseline.sh b/packer/provision/baseline.sh index 978296bb5..aae30d44b 100644 --- a/packer/provision/baseline.sh +++ b/packer/provision/baseline.sh @@ -7,6 +7,8 @@ set -xeu -o pipefail enable_service() { # Enable services for Ubuntu instances + # We purposely want to allow globbing to build the package array + # shellcheck disable=SC2206 services=($@) for service in "${services[@]}"; do @@ -72,6 +74,8 @@ ensure_ubuntu_install() { # On Ubuntu sometimes the mirrors fail to install a package. This wrapper # checks that a package is successfully installed before moving on. + # We purposely want to allow globbing to build the package array + # shellcheck disable=SC2206 packages=($@) for pkg in "${packages[@]}"