diff --git a/chunkcheck b/chunkcheck index af8c9ab..9895340 100755 --- a/chunkcheck +++ b/chunkcheck @@ -1,3 +1,5 @@ +#!/usr/bin/env python3 + from pathlib import Path import struct import hashlib @@ -61,4 +63,4 @@ def main(): check_chunklist(vmdir / 'RecoveryImage.dmg', vmdir / 'RecoveryImage.chunklist') if __name__ == "__main__": - main() \ No newline at end of file + main() diff --git a/quickget b/quickget index 42f8a92..8e3f611 100755 --- a/quickget +++ b/quickget @@ -2418,7 +2418,7 @@ function get_macos() { if [ "${skipVerification,,}" != "y" ] && [ "${skipVerification,,}" != "yes" ]; then exit 1 fi - echo 'Skipping verification' && skipVerification=true + echo 'Skipping verification' && skipVerification="true" fi OpenCore_qcow2="https://github.com/kholia/OSX-KVM/raw/master/OpenCore/OpenCore.qcow2" @@ -2462,12 +2462,13 @@ function get_macos() { fi fi - if [ $skipVerification != true ]; then - if ! python3 "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then + if [ "${skipVerification}" != "true" ]; then + if ! "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then echo "Verification failed." exit 1 + else + echo "Verified macOS ${RELEASE} image using chunklist." fi - echo "Verified macOS ${RELEASE} image using chunklist." else echo "Skipping verification of image." fi