Skip to content

Commit

Permalink
fix(install): Fixed packer version check for packer installation (#1121)
Browse files Browse the repository at this point in the history
(cherry picked from commit 34a6f29)
  • Loading branch information
ashleykleynhans authored and mergify[bot] committed Dec 4, 2024
1 parent eccbf4d commit b8a154d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosco-web/pkg_scripts/postInstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8a154d

Please sign in to comment.