Add files via upload

This commit is contained in:
kneutron 2025-01-21 22:33:55 -07:00 committed by GitHub
parent 87efa792d4
commit b595fe8a4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -0,0 +1,26 @@
#!/bin/bash
# failexit.mrg
function failexit () {
echo '! Something failed! Code: '"$1 $2" # code # (and optional description)
exit $1
}
dest=/Volumes/zmac5int/zmac5intcompshr
cd $dest || failexit 101 "check $dest"
time hdiutil create -o HighSierra.cdr -size 6000m -layout SPUD -fs HFS+J && \
hdiutil attach HighSierra.cdr.dmg -noverify -mountpoint /Volumes/install_build
sudo $HOME/Downloads/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build
mv -v HighSierra.cdr.dmg HighSierra.dmg
hdiutil detach /Volumes/Install\ macOS\ High\ Sierra
hdiutil detach /Volumes/install_build
time hdiutil convert HighSierra.dmg -format UDTO -o HighSierra.iso && mv -v HighSierra.iso.cdr HighSierra.iso
date
ls -alh *.iso