summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Kočí <karel.koci@nic.cz>2017-05-22 12:51:47 +0200
committerKarel Kočí <karel.koci@nic.cz>2017-05-22 12:51:47 +0200
commit2e567f75cbf90b3bbc69e0061948b49faafa0b4f (patch)
tree59c54aa7b1dd3432b2be5bee622b12faa76b764b
parent311065139eabf33be78f99f4c3aa692bc1f5193b (diff)
downloadturris-mymedkit-2e567f75cbf90b3bbc69e0061948b49faafa0b4f.tar.gz
turris-mymedkit-2e567f75cbf90b3bbc69e0061948b49faafa0b4f.tar.bz2
turris-mymedkit-2e567f75cbf90b3bbc69e0061948b49faafa0b4f.zip
Some small fixes
-rwxr-xr-xbuild_medkit.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/build_medkit.sh b/build_medkit.sh
index 54004d8..581c1f7 100755
--- a/build_medkit.sh
+++ b/build_medkit.sh
@@ -37,12 +37,13 @@ while [ $# -gt 0 ]; do
shift
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/$BOARD$VBRANCH/root/etc/turris-version)"
+ VERSION="$(curl https://repo.turris.cz/$MODEL$VBRANCH/root/etc/turris-version)"
fi
-# Ensure that we tools
+# Ensure that we have tools
./scripts/build_tools.sh
# Download api crl