Refactor get_solus()

This commit is contained in:
Martin Wimpress 2022-02-21 02:02:51 +00:00
parent ddb1f30d4f
commit bed546556a
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3

View File

@ -1157,9 +1157,9 @@ function get_solus() {
esac esac
ISO="Solus-${RELNUM}-${RELTYPE}.iso" ISO="Solus-${RELNUM}-${RELTYPE}.iso"
URL="https://mirrors.rit.edu/solus/images/${RELNUM}/${ISO}" URL="https://mirrors.rit.edu/solus/images/${RELNUM}"
HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1) HASH=$(wget -q -O- "${URL}.sha256sum" | cut -d' ' -f1)
web_get "${URL}" "${VM_PATH}" web_get "${URL}/${ISO}" "${VM_PATH}"
check_hash "${ISO}" "${HASH}" check_hash "${ISO}" "${HASH}"
make_vm_config "${ISO}" make_vm_config "${ISO}"
} }