X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=packer%2Fprovision%2Fbaseline.sh;h=aae30d44b1e3be34881adf56e5646a8ef1fedde7;hb=3949064fe80e9f63e21ccc589a75f46cf4b0a992;hp=978296bb577415ebdce3b32e4e0414dd720577d4;hpb=d5d6ff8f2a1194b38a2cd104e50e6ccf2d97ee16;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[@]}"