Skip to content

Commit

Permalink
Merge pull request #353 from gilad-shaham/update-3.2
Browse files Browse the repository at this point in the history
Bug fixes in scripts
  • Loading branch information
gilad-shaham authored Nov 8, 2021
2 parents 3b3cb7a + a3f26c0 commit 1848f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions igz-tutorials-get.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ fi
if [ -z "${branch}" ]; then
platform_version="${IGZ_VERSION%%_*}"
echo "Detected platform version: ${platform_version}"
latest_tag=`git ls-remote --tags --refs --sort='v:refname' "${git_url}" "refs/tags/v${platform_version}.*" | tail -n1 | awk '{ print $2}'`
tag_prefix=`echo ${platform_version} | cut -d . -f1-2`
latest_tag=`git ls-remote --tags --refs --sort='v:refname' "${git_url}" "refs/tags/v${tag_prefix}.*" | tail -n1 | awk '{ print $2}'`
if [ -z "${latest_tag}" ]; then
error_exit "Couldn't locate a Git tag with prefix 'v${platform_version}.*'. Aborting..."
error_exit "Couldn't locate a Git tag with prefix 'v${tag_prefix}.*'. Aborting..."
else
# Remove the prefix from the Git tag
branch=${latest_tag#refs/tags/}
Expand Down
2 changes: 1 addition & 1 deletion update-demos.sh
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ do
--mlrun-ver=?*)
mlrun_version=${1#*=} # Delete everything up to "=" and assign the remainder.
;;
--umlrun-ver=) # Handle the case of an empty --mlrun-ver=
--mlrun-ver=) # Handle the case of an empty --mlrun-ver=
error_usage "$1: Missing MLRun version."
;;
--dry-run)
Expand Down

0 comments on commit 1848f5d

Please sign in to comment.