Skip to content

Commit

Permalink
change version command regex
Browse files Browse the repository at this point in the history
Signed-off-by: nitin sanghi <[email protected]>
  • Loading branch information
sanghinitin committed Dec 6, 2024
1 parent 1d4fd62 commit 533f373
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion habitat/tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ cd "${project_root}"
echo "Testing ${pkg_ident} executables"
version=$(hab pkg exec "${pkg_ident}" chef-cli -v)
echo $version
actual_version=$(echo "$version" | grep -Po ([0-9]+\.[0-9]+\.[0-9]+))
actual_version=$(echo "$version" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo $actual_version

if [[ "$actual_version" != *"$package_version"* ]]; then
Expand Down

0 comments on commit 533f373

Please sign in to comment.