mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-30 02:46:30 +02:00
deps: bump envoy to v0.17.4 (#2535)
This commit is contained in:
parent
e73c678686
commit
848e51f7ee
1 changed files with 20 additions and 20 deletions
|
@ -4,36 +4,36 @@ set -euo pipefail
|
||||||
PATH="$PATH:$(go env GOPATH)/bin"
|
PATH="$PATH:$(go env GOPATH)/bin"
|
||||||
export PATH
|
export PATH
|
||||||
|
|
||||||
_envoy_version=1.17.3
|
_envoy_version=1.17.4
|
||||||
_dir="${DIR:-"$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/../bin"}"
|
_dir="${DIR:-"$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)/../bin"}"
|
||||||
_target="${TARGET:-"$(go env GOOS)-$(go env GOARCH)"}"
|
_target="${TARGET:-"$(go env GOOS)-$(go env GOARCH)"}"
|
||||||
|
|
||||||
is_command() {
|
is_command() {
|
||||||
command -v "$1" >/dev/null
|
command -v "$1" >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
hash_sha256() {
|
hash_sha256() {
|
||||||
TARGET=${1:-/dev/stdin}
|
TARGET=${1:-/dev/stdin}
|
||||||
if is_command gsha256sum; then
|
if is_command gsha256sum; then
|
||||||
hash=$(gsha256sum "$TARGET") || return 1
|
hash=$(gsha256sum "$TARGET") || return 1
|
||||||
echo "$hash" | cut -d ' ' -f 1
|
echo "$hash" | cut -d ' ' -f 1
|
||||||
elif is_command sha256sum; then
|
elif is_command sha256sum; then
|
||||||
hash=$(sha256sum "$TARGET") || return 1
|
hash=$(sha256sum "$TARGET") || return 1
|
||||||
echo "$hash" | cut -d ' ' -f 1
|
echo "$hash" | cut -d ' ' -f 1
|
||||||
elif is_command shasum; then
|
elif is_command shasum; then
|
||||||
hash=$(shasum -a 256 "$TARGET" 2>/dev/null) || return 1
|
hash=$(shasum -a 256 "$TARGET" 2>/dev/null) || return 1
|
||||||
echo "$hash" | cut -d ' ' -f 1
|
echo "$hash" | cut -d ' ' -f 1
|
||||||
elif is_command openssl; then
|
elif is_command openssl; then
|
||||||
hash=$(openssl -dst openssl dgst -sha256 "$TARGET") || return 1
|
hash=$(openssl -dst openssl dgst -sha256 "$TARGET") || return 1
|
||||||
echo "$hash" | cut -d ' ' -f a
|
echo "$hash" | cut -d ' ' -f a
|
||||||
else
|
else
|
||||||
echo "hash_sha256 unable to find command to compute sha-256 hash"
|
echo "hash_sha256 unable to find command to compute sha-256 hash"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if [ -f "$_dir/envoy" ]; then
|
if [ -f "$_dir/envoy" ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p "$_dir"
|
mkdir -p "$_dir"
|
||||||
|
|
Loading…
Add table
Reference in a new issue