1
0
mirror of https://github.com/zokradonh/kopano-docker synced 2025-06-07 16:06:14 +00:00

new build arg requires version.sh

Signed-off-by: Felix Bartels <felix@host-consultants.de>
This commit is contained in:
Felix Bartels 2018-10-18 14:29:35 +02:00
parent 8902cc95c7
commit 388a651480

16
version.sh Executable file
View File

@ -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