fix: remove invalid variable in check for rhash availability
This commit is contained in:
parent
38bf1de80c
commit
3c8391789d
|
@ -791,7 +791,6 @@ function download_stage3() {
|
||||||
|| die "Could not cd into '$TMP_DIR'"
|
|| die "Could not cd into '$TMP_DIR'"
|
||||||
|
|
||||||
local STAGE3_RELEASES="$GENTOO_MIRROR/releases/amd64/autobuilds/current-$STAGE3_BASENAME/"
|
local STAGE3_RELEASES="$GENTOO_MIRROR/releases/amd64/autobuilds/current-$STAGE3_BASENAME/"
|
||||||
local sha512sums
|
|
||||||
|
|
||||||
# Download upstream list of files
|
# Download upstream list of files
|
||||||
CURRENT_STAGE3="$(download_stdout "$STAGE3_RELEASES")" \
|
CURRENT_STAGE3="$(download_stdout "$STAGE3_RELEASES")" \
|
||||||
|
@ -832,7 +831,7 @@ function download_stage3() {
|
||||||
einfo "Verifying tarball integrity"
|
einfo "Verifying tarball integrity"
|
||||||
# Replace any absolute paths in the digest file with just the stage3 basename, so it will be found by rhash
|
# 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-/')
|
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") \
|
rhash -P --check <(echo "# SHA512"; echo "$digest_line") \
|
||||||
|| die "Checksum mismatch!"
|
|| die "Checksum mismatch!"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue