@ -1157,7 +1157,7 @@ function get_opensuse() {
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
ISO="openSUSE-Leap-${RELEASE}-DVD-x86_64-Current.iso"
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
URL="https://download.opensuse.org/distribution/leap/${RELEASE}/iso"
fi
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}"
echo "${URL}/${ISO} ${HASH}"
}
}
@ -1210,7 +1210,7 @@ function get_rockylinux() {
8.5) URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64";;
8.5) URL="https://download.rockylinux.org/pub/rocky/${RELEASE}/isos/x86_64";;
*) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64/";;
*) URL="http://dl.rockylinux.org/vault/rocky/${RELEASE}/isos/x86_64/";;
esac
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}"
echo "${URL}/${ISO} ${HASH}"
}
}