mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 13:35:25 +02:00
fix: add #! to chunkcheck and correct skipVerification for macOS
This commit is contained in:
parent
3722b13ecb
commit
67ddb91915
|
@ -1,3 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
import struct
|
import struct
|
||||||
import hashlib
|
import hashlib
|
||||||
|
@ -61,4 +63,4 @@ def main():
|
||||||
check_chunklist(vmdir / 'RecoveryImage.dmg', vmdir / 'RecoveryImage.chunklist')
|
check_chunklist(vmdir / 'RecoveryImage.dmg', vmdir / 'RecoveryImage.chunklist')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
9
quickget
9
quickget
|
@ -2418,7 +2418,7 @@ function get_macos() {
|
||||||
if [ "${skipVerification,,}" != "y" ] && [ "${skipVerification,,}" != "yes" ]; then
|
if [ "${skipVerification,,}" != "y" ] && [ "${skipVerification,,}" != "yes" ]; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
echo 'Skipping verification' && skipVerification=true
|
echo 'Skipping verification' && skipVerification="true"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
OpenCore_qcow2="https://github.com/kholia/OSX-KVM/raw/master/OpenCore/OpenCore.qcow2"
|
OpenCore_qcow2="https://github.com/kholia/OSX-KVM/raw/master/OpenCore/OpenCore.qcow2"
|
||||||
|
@ -2462,12 +2462,13 @@ function get_macos() {
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ $skipVerification != true ]; then
|
if [ "${skipVerification}" != "true" ]; then
|
||||||
if ! python3 "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then
|
if ! "${CHUNKCHECK}" "${VM_PATH}" 2> /dev/null; then
|
||||||
echo "Verification failed."
|
echo "Verification failed."
|
||||||
exit 1
|
exit 1
|
||||||
|
else
|
||||||
|
echo "Verified macOS ${RELEASE} image using chunklist."
|
||||||
fi
|
fi
|
||||||
echo "Verified macOS ${RELEASE} image using chunklist."
|
|
||||||
else
|
else
|
||||||
echo "Skipping verification of image."
|
echo "Skipping verification of image."
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user