mirror of
https://github.com/dani-garcia/bw_web_builds.git
synced 2024-12-26 20:38:25 +03:00
aabcc2737f
Updated the web-vault to the latest released version. This version is also using the new repo `bitwarden/clients` instead of the old `bitwarden/web`. All files have been changed where needed.
16 lines
489 B
Bash
16 lines
489 B
Bash
#!/usr/bin/env bash
|
|
# shellcheck disable=SC2034
|
|
set -o pipefail -o errexit
|
|
|
|
VAULT_FOLDER=web-vault
|
|
OUTPUT_FOLDER=builds
|
|
|
|
function get_web_vault_version {
|
|
# First check if we are able to get a tag or branch
|
|
VAULT_VERSION=$(git describe --abbrev=0 --tags --exact-match 2>/dev/null || git branch --show-current)
|
|
# Else we will use the current commit hash
|
|
if [[ -z "${VAULT_VERSION}" ]]; then
|
|
VAULT_VERSION=$(git rev-parse HEAD)
|
|
fi
|
|
echo "${VAULT_VERSION#web-}"
|
|
}
|