Fix maple_upload to fall back to /opt/local/bin/dfu_util if not in /usr/local/bin
This commit is contained in:
parent
c57ae831dd
commit
3a54d9fcfe
|
@ -9,6 +9,10 @@ fi
|
|||
dummy_port=$1; altID=$2; usbID=$3; binfile=$4
|
||||
|
||||
DFU_UTIL=/usr/local/bin/dfu-util
|
||||
if [ ! -x ${DFU_UTIL} ]; then
|
||||
DFU_UTIL=/opt/local/bin/dfu-util
|
||||
fi
|
||||
|
||||
if [ ! -x ${DFU_UTIL} ]; then
|
||||
echo "$0: error: cannot find ${DFU_UTIL}" >&2
|
||||
exit 2
|
||||
|
|
Loading…
Reference in New Issue