mirror of
https://github.com/foxlet/macOS-Simple-KVM.git
synced 2024-06-02 06:03:31 +02:00
jumpstart.sh: use environment's dmg2img if available
The binary in the repo depends on /lib64 which does not exist everywhere
This commit is contained in:
parent
98f0dc62fd
commit
2324d48c66
|
@ -38,4 +38,10 @@ esac
|
|||
|
||||
"$TOOLS/FetchMacOS/fetch.sh" -v $version || exit 1
|
||||
|
||||
"$TOOLS/dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
|
||||
if [ -x "$(command -v dmg2img)" ]; then
|
||||
dmg2img="dmg2img"
|
||||
else
|
||||
dmg2img="$TOOLS/dmg2img"
|
||||
fi
|
||||
|
||||
"$dmg2img" "$TOOLS/FetchMacOS/BaseSystem/BaseSystem.dmg" "$PWD/BaseSystem.img"
|
||||
|
|
Loading…
Reference in New Issue
Block a user