mirror of
https://github.com/elliotnunn/tbxi-patches.git
synced 2024-10-31 17:04:44 +00:00
20 lines
467 B
Bash
Executable File
20 lines
467 B
Bash
Executable File
#!/bin/bash
|
|
|
|
REMOTE=/Volumes/Alpha
|
|
|
|
echo -n Waiting for "$REMOTE"...
|
|
until mount | grep -q "$REMOTE"; do sleep 0.15; done
|
|
echo ok
|
|
|
|
for x in "$@"; do
|
|
td="$(mktemp -d)"
|
|
binhex -C "$td" "$x" # hack to find out file name!
|
|
rm -f "$REMOTE/System Folder/$(ls "$td")"
|
|
rm -rf "$td"
|
|
binhex -C "$REMOTE/System Folder/" "$x"
|
|
done
|
|
|
|
diskutil unmountDisk force /dev/`diskutil info "$REMOTE" | grep "Part of Whole" | tr '[[:space:]]' '\n' | tail -n1`
|
|
echo -n -e "\a"
|
|
say copied
|