Skip to content

Commit

Permalink
address review comments
Browse files Browse the repository at this point in the history
Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com>
  • Loading branch information
kranurag7 committed Jun 2, 2024
1 parent f728afa commit e66f4bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion images/capi/hack/ensure-packer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,10 @@ if (command -v packer) >/dev/null 2>&1; then
# if it's not the hashicorp packer, return "unexpected packer found"
if !(timeout 10 packer version) >/dev/null 2>&1; then
echo "unexpected packer found";
echo "downloading hashicorp packer version v1.9.5"
exit 0
fi
existing_packer_version=$(packer version | head -1 | cut -d 'v' -f 2)
existing_packer_version=$(packer version | head -1 | cut -d 'v' -f 2; exit 0)
echo "existing packer version: $existing_packer_version"
if [ "$existing_packer_version" != "$_version" ]; then
echo "unsupported packer version ($existing_packer_version) found"
Expand Down

0 comments on commit e66f4bf

Please sign in to comment.