This commit is contained in:
Superhanswurst 2023-11-13 19:18:40 +01:00 committed by GitHub
commit 5c03572d92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
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 -sLI https://github.com/bitwarden/self-host/releases/latest -o /dev/null -w '%{url_effective}' | grep -o 'tag/v[^/]\+' | cut -c5- | sed 's/\r//' | sed 's/^v//')
echo "Building BitBetter for BitWarden version $BW_VERSION"

View File

@ -9,7 +9,7 @@ ask () {
}
SCRIPT_BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && 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 -sLI https://github.com/bitwarden/self-host/releases/latest -o /dev/null -w '%{url_effective}' | grep -o 'tag/v[^/]\+' | cut -c5- | sed 's/\r//' | sed 's/^v//')
echo "Starting Bitwarden update, newest server version: $BW_VERSION"