mirror of
https://github.com/jakeswenson/BitBetter.git
synced 2025-07-13 06:53:25 +00:00
Clone only current version tag
This commit is contained in:
parent
1a2073cf35
commit
317af2994b
3
build.sh
3
build.sh
|
@ -11,8 +11,7 @@ echo "Building BitBetter for BitWarden version $BW_VERSION"
|
||||||
|
|
||||||
# Prepare Bitwarden repository
|
# Prepare Bitwarden repository
|
||||||
rm -rf $DIR/server
|
rm -rf $DIR/server
|
||||||
git clone https://github.com/bitwarden/server.git
|
git clone --branch "v${BW_VERSION}" --depth 1 https://github.com/bitwarden/server.git $DIR/server
|
||||||
git -C $DIR/server checkout tags/v${BW_VERSION}
|
|
||||||
old_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':')
|
old_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/server/src/Core/licensing.cer | cut -d= -f2 | tr -d ':')
|
||||||
new_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':')
|
new_thumbprint=$(openssl x509 -fingerprint -noout -in $DIR/.keys/cert.cert | cut -d= -f2 | tr -d ':')
|
||||||
cp $DIR/.keys/cert.cert $DIR/server/src/Core/licensing.cer
|
cp $DIR/.keys/cert.cert $DIR/server/src/Core/licensing.cer
|
||||||
|
|
Loading…
Reference in New Issue
Block a user