From 34a6f293cfe44ed556af1bd9e233a8ccf69bb208 Mon Sep 17 00:00:00 2001 From: Ashley Kleynhans Date: Fri, 22 Nov 2024 17:42:41 +0200 Subject: [PATCH] fix(install): Fixed packer version check for packer installation (#1121) --- rosco-web/pkg_scripts/postInstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rosco-web/pkg_scripts/postInstall.sh b/rosco-web/pkg_scripts/postInstall.sh index c99243fd7..b8f6f6b65 100755 --- a/rosco-web/pkg_scripts/postInstall.sh +++ b/rosco-web/pkg_scripts/postInstall.sh @@ -39,7 +39,7 @@ install_packer() { local packer_version="$(/usr/bin/packer --version)" local packer_status=$? - if [ $packer_status -ne 0 ] || ! grep -q "$PACKER_VERSION" <<< "$packer_version" ; then + if [ $packer_status -ne 0 ] || ! echo "$packer_version" | grep -q "$PACKER_VERSION"; then wget https://releases.hashicorp.com/packer/${PACKER_VERSION}/packer_${PACKER_VERSION}_linux_${ARCH}.zip unzip -o "packer_${PACKER_VERSION}_linux_${ARCH}.zip" -d /usr/bin fi