fix get_opensuse and get_rockylinux hash (#404)
* fix get_opensuse hash * fix rockylinux hash there was a iso.manifast in the hash file as well which caused issue with hash output Co-authored-by: takov751 <takov751@protonmail.com>
This commit is contained in:
parent
a6073dfd5b
commit
0c487682d9
4
quickget
4
quickget
@ -1157,7 +1157,7 @@ function get_opensuse() {
|
||||
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
|
||||
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
|
||||
fi
|
||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" | cut -d' ' -f1)
|
||||
HASH=$(wget -q -O- "${URL}/${ISO}.sha256" |awk '{if(NR==4) print $0}'|cut -d' ' -f1)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
@ -1210,7 +1210,7 @@ function get_rockylinux() {
|
||||
8.5) URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64";;
|
||||
*) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64/";;
|
||||
esac
|
||||
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO}" | cut -d' ' -f4)
|
||||
HASH=$(wget -q -O- "${URL}/CHECKSUM" | grep "SHA256" | grep "${ISO})" | cut -d' ' -f4)
|
||||
echo "${URL}/${ISO} ${HASH}"
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user