mirror of
https://github.com/hanzoai/deploy.git
synced 2026-10-07 08:44:50 +00:00
* chore: fix kustomize installation in MacOS Signed-off-by: Leonardo Luz Almeida <[email protected]> * Install Kustomize in dist folder Signed-off-by: Leonardo Luz Almeida <[email protected]> * Create $BIN folder if does not exist Signed-off-by: Leonardo Luz Almeida <[email protected]> * Change dist just for kustomize Signed-off-by: Leonardo Luz Almeida <[email protected]> * display kustomize binary used Signed-off-by: Leonardo Luz Almeida <[email protected]> * Fix kustomize used for manifest generation Signed-off-by: Leonardo Luz Almeida <[email protected]> * Fix kustomize installation in docker Signed-off-by: Leonardo Luz Almeida <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
27 lines
538 B
Bash
Executable File
27 lines
538 B
Bash
Executable File
#!/bin/sh
|
|
set -ex
|
|
|
|
if test "${TARGET_FILE}" = ""; then
|
|
echo "Need to define \$TARGET_FILE" >&2
|
|
exit 1
|
|
fi
|
|
|
|
CHKSUM_FILE=$(cd "$(dirname "$0")" && pwd)/checksums/${TARGET_FILE}.sha256
|
|
|
|
cd "${DOWNLOADS}" || (
|
|
echo "Can't change directory to ${DOWNLOAD}" >&2
|
|
exit 1
|
|
)
|
|
|
|
if ! test -f "${TARGET_FILE}"; then
|
|
echo "Archive to be checked (${TARGET_FILE}) does not exist" >&2
|
|
exit 1
|
|
fi
|
|
|
|
if ! grep -q "${TARGET_FILE}" ${CHKSUM_FILE}; then
|
|
echo "No checksum for ${TARGET_FILE} in ${CHKSUM_FILE}" >&2
|
|
exit 1
|
|
fi
|
|
|
|
shasum -a 256 -c ${CHKSUM_FILE}
|