Only parse FQBN if we have it

tmp/arduino-cli-pre-rebase
Jesse Vincent 4 years ago
parent 941ab0f7d6
commit 1fe36e265c
No known key found for this signature in database
GPG Key ID: CC228463465E40BC

@ -11,7 +11,7 @@
: "${BOARD:=model01}"
if [ -z "${ARCH}" ]; then
if [[ -z "${ARCH}" && -n "${FQBN}" ]]; then
ARCH=$(echo "${FQBN}" | sed -n -e 's/^[^:]\+:\([^:]\+\).*/\1/p')
fi

Loading…
Cancel
Save