From b9d0829d5d77ac3ee8c4056e5ede085e9fd1526d Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Thu, 9 May 2024 04:29:20 +0100 Subject: [PATCH] refactor: remove skip verification conditions in get_macos() --- quickget | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/quickget b/quickget index a78b581..de9d8e7 100755 --- a/quickget +++ b/quickget @@ -2080,14 +2080,6 @@ function get_macos() { CHUNKCHECK="$(command -v chunkcheck)" fi - if [ -z "${CHUNKCHECK}" ]; then - read -p "ERROR! Can not find chunkcheck. Will not be able to verify image. Proceed anyway?" skipVerification - if [ "${skipVerification,,}" != "y" ] && [ "${skipVerification,,}" != "yes" ]; then - exit 1 - fi - echo "Skipping verification" && skipVerification="true" - fi - OpenCore_qcow2="https://github.com/kholia/OSX-KVM/raw/master/OpenCore/OpenCore.qcow2" OVMF_CODE="https://github.com/kholia/OSX-KVM/raw/master/OVMF_CODE.fd" OVMF_VARS="https://github.com/kholia/OSX-KVM/raw/master/OVMF_VARS-1920x1080.fd" @@ -2134,14 +2126,10 @@ function get_macos() { fi fi - if [ "${skipVerification}" != "true" ]; then - if ! "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then - echo "Verification failed." - else - echo "Verified macOS ${RELEASE} image using chunklist." - fi + if ! "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then + echo "Verification failed." else - echo "Skipping verification of image." + echo "Verified macOS ${RELEASE} image using chunklist." fi if [ -e "${VM_PATH}/RecoveryImage.dmg" ] && [ ! -e "${VM_PATH}/RecoveryImage.img" ]; then