From a5b18abf641e12483bb3e0de4f3686e3cf4a2d56 Mon Sep 17 00:00:00 2001 From: Superhanswurst <32244954+Superhanswurst@users.noreply.github.com> Date: Mon, 13 Nov 2023 19:24:57 +0100 Subject: [PATCH] Update build.sh --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 4371c0c..8dbc30f 100755 --- a/build.sh +++ b/build.sh @@ -2,7 +2,8 @@ DIR=`dirname "$0"` DIR=`exec 2>/dev/null;(cd -- "$DIR") && cd -- "$DIR"|| cd "$DIR"; unset PWD; /usr/bin/pwd || /bin/pwd || pwd` -BW_VERSION=$(curl -sL https://go.btwrdn.co/bw-sh-versions | grep '^ *"'coreVersion'":' | awk -F\: '{ print $2 }' | sed -e 's/,$//' -e 's/^"//' -e 's/"$//') +#BW_VERSION=$(curl -sL https://go.btwrdn.co/bw-sh-versions | grep '^ *"'coreVersion'":' | awk -F\: '{ print $2 }' | sed -e 's/,$//' -e 's/^"//' -e 's/"$//') +BW_VERSION=$(curl -sL https://raw.githubusercontent.com/bitwarden/self-host/master/version.json | grep -o 'coreVersion":"[^"]*' | awk -F '":"' '{print $2}' | sed 's/\r//') echo "Building BitBetter for BitWarden version $BW_VERSION"