From 1fe36e265cc92cc3273cbf25990397f14fa0f36f Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Fri, 23 Oct 2020 00:11:48 -0700 Subject: [PATCH] Only parse FQBN if we have it --- etc/kaleidoscope-builder.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/kaleidoscope-builder.conf b/etc/kaleidoscope-builder.conf index 4c35fd6d..ff955a22 100644 --- a/etc/kaleidoscope-builder.conf +++ b/etc/kaleidoscope-builder.conf @@ -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