fix quick flash for mac

This commit is contained in:
Lucy Cifferello
2021-12-29 12:50:09 -07:00
committed by Aiden McClelland
parent 5e681aa3fb
commit f0d2e77664

View File

@@ -45,7 +45,7 @@ if ! which pv > /dev/null; then
fi
if [[ "$(uname)" == "Darwin" ]]; then
export TARGET_PARTITION="disk$(diskutil list | grep EMBASSY | head -1 | rev | cut -b 3)s3"
export TARGET_PARTITION="/dev/disk$(diskutil list | grep EMBASSY | head -1 | rev | cut -b 3)s3"
if ! test -e $TARGET_PARTITION; then
>&2 echo '`green` partition not found'
exit 1