From 227488c9e369d5d565e8e6a860269459c15da492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Mon, 3 Jul 2017 10:38:54 +0200 Subject: Get turris version from packages list not from root When we don't generate medkit than we don't have root and so we can't use it anymore. --- build_medkit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build_medkit.sh b/build_medkit.sh index 581c1f7..56c03a0 100755 --- a/build_medkit.sh +++ b/build_medkit.sh @@ -40,7 +40,7 @@ done # Get latest version if we didn't stated version explicitly if [ -z "$VERSION" ]; then [ -n "$BRANCH" ] && VBRANCH="-$BRANCH" - VERSION="$(curl https://repo.turris.cz/$MODEL$VBRANCH/root/etc/turris-version)" + VERSION="$(curl https://repo.turris.cz/omnia-dev-karel/packages/base/Packages | sed -n 's/^Filename: turris-version_\([^_]*\)_.*/\1/p')" fi # Ensure that we have tools -- cgit v1.2.3