mirror of
https://github.com/Tolik-Trek/Crazy-Blaster.git
synced 2026-06-15 09:31:37 +03:00
13 lines
598 B
Bash
Executable File
13 lines
598 B
Bash
Executable File
#! /bin/zsh
|
|
sp_disk="$(hdiutil attach -imagekey diskimage-class=CRawDiskImage /Users/tolik/Documents/MAME/IMG/test_2g.img | grep -m 1 -o ^'/dev/disk[[:digit:]]\+')"
|
|
((ERROR_LEVEL +=$?))
|
|
cp Build/$1 /Volumes/TMP_MAME/$1
|
|
((ERROR_LEVEL +=$?))
|
|
sp_disk="$(hdiutil detach "${sp_disk}")"
|
|
let "ERROR_LEVEL +=$?"
|
|
if [[ "$ERROR_LEVEL" == "0" ]]; then
|
|
echo "\nALL DONE!" >&2
|
|
#exec "/Applications/CrossOver.app/Contents/SharedSupport/CrossOver/bin/wine" --bottle "ZXMAK2" --wait-children --check --start "C:/users/crossover/AppData/Roaming/Microsoft/Windows/Start Menu/ZXMAK2.lnk"
|
|
else
|
|
echo "\nError!!!" >&2
|
|
fi |