mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix shasum check
Airgap image checksums may accidentaly be used by the installer, be more specific to grep only for the downloaded executable.
This commit is contained in:
parent
44d2f3afe6
commit
43852f040b
@ -226,7 +226,7 @@ download_hash() {
|
||||
HASH_URL=${GITHUB_URL}/download/${VERSION_K3S}/sha256sum-${ARCH}.txt
|
||||
info "Downloading hash ${HASH_URL}"
|
||||
curl -o ${TMP_HASH} -sfL ${HASH_URL} || fatal "Hash download failed"
|
||||
HASH_EXPECTED=`grep k3s ${TMP_HASH} | awk '{print $1}'`
|
||||
HASH_EXPECTED=`grep " k3s${SUFFIX}$" ${TMP_HASH} | awk '{print $1}'`
|
||||
}
|
||||
|
||||
# --- check hash against installed version ---
|
||||
|
Loading…
Reference in New Issue
Block a user