From 43852f040b3ea0d73b33aa3d8156a260f08d246d Mon Sep 17 00:00:00 2001 From: Erik Wilson Date: Fri, 29 Mar 2019 03:55:55 +0000 Subject: [PATCH] Fix shasum check Airgap image checksums may accidentaly be used by the installer, be more specific to grep only for the downloaded executable. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index e257cd24a0..9224167449 100755 --- a/install.sh +++ b/install.sh @@ -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 ---