From 3c8391789de75d9ea40b2ce42adf8c4da7e2ccda Mon Sep 17 00:00:00 2001 From: oddlama Date: Sat, 14 May 2022 00:51:28 +0200 Subject: [PATCH] fix: remove invalid variable in check for rhash availability --- scripts/functions.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/functions.sh b/scripts/functions.sh index 0371680..4f56639 100644 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -791,7 +791,6 @@ function download_stage3() { || die "Could not cd into '$TMP_DIR'" local STAGE3_RELEASES="$GENTOO_MIRROR/releases/amd64/autobuilds/current-$STAGE3_BASENAME/" - local sha512sums # Download upstream list of files CURRENT_STAGE3="$(download_stdout "$STAGE3_RELEASES")" \ @@ -832,7 +831,7 @@ function download_stage3() { einfo "Verifying tarball integrity" # Replace any absolute paths in the digest file with just the stage3 basename, so it will be found by rhash digest_line=$(grep 'tar.xz$' "${CURRENT_STAGE3}.DIGESTS" | sed -e 's/ .*stage3-/ stage3-/') - if type "$program" &>/dev/null; then + if type rhash &>/dev/null; then rhash -P --check <(echo "# SHA512"; echo "$digest_line") \ || die "Checksum mismatch!" else