mirror of
https://github.com/dani-garcia/bw_web_builds.git
synced 2024-12-27 04:48:17 +03:00
6529f1dab0
- 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
16 lines
484 B
Bash
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}"
|
|
}
|