X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fpacker-install.sh;h=fea704a939b5dfc9741863f32ff58cec28639073;hb=dbd05cd4100a27a545cc2c7f0388018449d982c3;hp=86ddf82eea465ba3fd8bcd58f2e298da8127eae0;hpb=b7c2eb944f2ca44bb07a1841306dc75e3e8c03bd;p=releng%2Fglobal-jjb.git diff --git a/shell/packer-install.sh b/shell/packer-install.sh index 86ddf82e..fea704a9 100644 --- a/shell/packer-install.sh +++ b/shell/packer-install.sh @@ -38,7 +38,7 @@ version_ge() { test "$(echo "$@" | tr " " "\n" | sort -rV | head -n 1)" == "$1"; if hash packer.io 2>/dev/null; then CURRENT_VERSION="$(packer.io --version)" - if version_lt $CURRENT_VERSION $PACKER_VERSION; then + if version_lt "$CURRENT_VERSION" "$PACKER_VERSION"; then echo "Packer version $CURRENT_VERSION installed is less than $PACKER_VERSION available, updating Packer." packer_install else