This commit is contained in:
Elliot Nunn 2019-07-22 16:01:39 +08:00
parent 93fd9e753f
commit 00a3db5bf0

9
autocopy.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
REMOTE_DISK_NAME=Alpha
until mount | grep -q "/Volumes/$REMOTE_DISK_NAME"; do sleep 0.15; done
rm -f "/Volumes/$REMOTE_DISK_NAME/System Folder/Mac OS ROM"
binhex -o "/Volumes/$REMOTE_DISK_NAME/System Folder/Mac OS ROM" $<
diskutil unmountDisk force /dev/`diskutil info /Volumes/Alpha/ | grep "Part of Whole" | sed 's/.*:\s*//'`
say copied