From 388a651480e986b1caf6da83e914b964fea01424 Mon Sep 17 00:00:00 2001 From: Felix Bartels Date: Thu, 18 Oct 2018 14:29:35 +0200 Subject: [PATCH] new build arg requires version.sh Signed-off-by: Felix Bartels --- version.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 version.sh diff --git a/version.sh b/version.sh new file mode 100755 index 0000000..9b3b911 --- /dev/null +++ b/version.sh @@ -0,0 +1,16 @@ +#!/bin/bash +if ! hash jq; then + echo "Please install jq in order to run this build script." + exit 1 +fi + +source base/create-kopano-repo.sh + +component=${1:-core} + +# query community server by h5ai API +filename=$(h5ai_query "$component") + +currentVersion=$(version_from_filename "$filename") + +echo $currentVersion