File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 86
86
if [ -z " ${branch} " ]; then
87
87
platform_version=" ${IGZ_VERSION%% _* } "
88
88
echo " Detected platform version: ${platform_version} "
89
- latest_tag=` git ls-remote --tags --refs --sort=' v:refname' " ${git_url} " " refs/tags/v${platform_version} .*" | tail -n1 | awk ' { print $2}' `
89
+ tag_prefix=` echo ${platform_version} | cut -d . -f1-2`
90
+ latest_tag=` git ls-remote --tags --refs --sort=' v:refname' " ${git_url} " " refs/tags/v${tag_prefix} .*" | tail -n1 | awk ' { print $2}' `
90
91
if [ -z " ${latest_tag} " ]; then
91
- error_exit " Couldn't locate a Git tag with prefix 'v${platform_version } .*'. Aborting..."
92
+ error_exit " Couldn't locate a Git tag with prefix 'v${tag_prefix } .*'. Aborting..."
92
93
else
93
94
# Remove the prefix from the Git tag
94
95
branch=${latest_tag# refs/ tags/ }
Original file line number Diff line number Diff line change 93
93
--mlrun-ver=?* )
94
94
mlrun_version=${1#* =} # Delete everything up to "=" and assign the remainder.
95
95
;;
96
- --umlrun -ver=) # Handle the case of an empty --mlrun-ver=
96
+ --mlrun -ver=) # Handle the case of an empty --mlrun-ver=
97
97
error_usage " $1 : Missing MLRun version."
98
98
;;
99
99
--dry-run)
You can’t perform that action at this time.
0 commit comments