vaultwarden-web/scripts/.script_env
BlackDex 6529f1dab0
Update web-vault to v2022.05.0 and misc changes
- Updated web-vault to v2022.05.0
- Made several changes to the build scripts for ease of building/patching etc...
  You can now run `make checkout` to pull/update the repo to the wanted version
  There is also a `make patch-web-vault` to patch the repo
  A `make generate-patch` to create a patch file from the current changes
  And many more changes
2022-06-02 22:10:28 +02:00

16 lines
484 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}"
}