Skip to content

Commit 1848f5d

Browse files
authored
Merge pull request #353 from gilad-shaham/update-3.2
Bug fixes in scripts
2 parents 3b3cb7a + a3f26c0 commit 1848f5d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

igz-tutorials-get.sh

100755100644
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,10 @@ fi
8686
if [ -z "${branch}" ]; then
8787
platform_version="${IGZ_VERSION%%_*}"
8888
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}'`
9091
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..."
9293
else
9394
# Remove the prefix from the Git tag
9495
branch=${latest_tag#refs/tags/}

update-demos.sh

100755100644
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ do
9393
--mlrun-ver=?*)
9494
mlrun_version=${1#*=} # Delete everything up to "=" and assign the remainder.
9595
;;
96-
--umlrun-ver=) # Handle the case of an empty --mlrun-ver=
96+
--mlrun-ver=) # Handle the case of an empty --mlrun-ver=
9797
error_usage "$1: Missing MLRun version."
9898
;;
9999
--dry-run)

0 commit comments

Comments
 (0)