Skip to content

Commit

Permalink
change version command
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 1e68228 commit d0d63cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
actual_version=$(echo "${version}" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
[[ "$package_version" = "$actual_version" ]] || error "chef-cli version is not the expected version. Expected '$package_version', got '$actual_version'"


2 changes: 1 addition & 1 deletion s.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pkg_ident="sanghinitin/chef-cli/5.6.15/20241205082855"
version=$(hab pkg exec "${pkg_ident}" chef-cli -v)
echo $version
actual_version=$(echo "$version" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
actual_version=$(echo "[2024-12-06T07:35:58+00:00] WARN: Please install an English UTF-8 locale for Chef Infra Client to use, falling back to C locale and disabling UTF-8 support. Chef CLI version: 5.6.15" | sed -E 's/.*version: ([0-9]+\.[0-9]+\.[0-9]+).*/\1/')
echo $actual_version

0 comments on commit d0d63cb

Please sign in to comment.