From f0d2e776647b524ad70ee0a56f4826ada2cda544 Mon Sep 17 00:00:00 2001 From: Lucy Cifferello <12953208+elvece@users.noreply.github.com> Date: Wed, 29 Dec 2021 12:50:09 -0700 Subject: [PATCH] fix quick flash for mac --- build/quick-flash.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/quick-flash.sh b/build/quick-flash.sh index 686b3639a..1035fccb2 100755 --- a/build/quick-flash.sh +++ b/build/quick-flash.sh @@ -45,10 +45,10 @@ 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 + exit 1 fi export SOURCE_DEVICE="$(hdiutil attach -nomount eos.img | head -n1 | sed -E 's/([^ ]+).*$/\1/g')" export SOURCE_PARTITION="${SOURCE_DEVICE}s3"