Skip to content

Commit 9d21d6c

Browse files
authored
Merge pull request #612 from mlrun/1.7.x-dev
1.7.x dev
2 parents 4e48043 + 32932d4 commit 9d21d6c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

update_demos.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ download_tar_to_temp_dir() {
261261
echo "Downloading : $tar_url ..."
262262
wget -c "${tar_url}" -O mlrun-demos.tar
263263
tar -xf mlrun-demos.tar -C "${temp_dir}" --strip-components 1
264-
chmod +x "${temp_dir}"/update_demos.sh
265264
rm -rf mlrun-demos.tar
266265
}
267266
download_tar_gz_to_temp_dir() {
@@ -304,6 +303,13 @@ if [ -z "$mlrun_version" ]; then # mlrun version isn't specified. using installe
304303
mlrun_version="${pip_mlrun##Version: }"
305304
fi
306305
fi
306+
307+
# Handling the case mlrun version is 0.0.0+unstable
308+
tag_prefix=`echo "${mlrun_version}" | cut -d . -f1-2`
309+
if [[ "$tag_prefix"=="0.0" ]]; then
310+
mlrun_version="1.7.0"
311+
fi
312+
307313
echo "Looking for demos with MLRun version - ${mlrun_version}."
308314
if [[ "${mlrun_version}"<"1.7" ]]; then
309315
git_repo="demos"

0 commit comments

Comments
 (0)