diff --git a/README.md b/README.md index e4b1d5f..ea98b20 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ Make sure you have the required build dependencies: * docker * git * patch +* curl Then: diff --git a/build.sh b/build.sh index a073668..b74bdfd 100755 --- a/build.sh +++ b/build.sh @@ -18,7 +18,7 @@ while getopts ":r:o:d:" opt; do ;; esac done -if [ -z "$REF" ]; then REF="1.15.0"; fi +if [ -z "$REF" ]; then REF=$(curl -s https://api.github.com/repos/dani-garcia/bitwarden_rs/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | cut -c 1-); fi if [ -z "$OS_VERSION_NAME" ]; then OS_VERSION_NAME='buster'; fi if [ -z "$DB_TYPE" ]; then DB_TYPE="sqlite"; fi