From 2ba10574d4d029ffc68aa8baea55f1a3abb10edc Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 22 Oct 2020 23:45:16 -0700 Subject: [PATCH] Simplify defaulting of ARCH and FQBN --- bin/kaleidoscope-builder | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index 78b36055..83fd96cc 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -424,11 +424,8 @@ do_compile () { # shellcheck disable=SC1090 FQBN="$(. "${SKETCH_DIR}"/.kaleidoscope-builder.conf && echo "${FQBN}")" if [ -n "${BOARD}" ]; then - if [ -z "${ARCH}" ]; then - FQBN="keyboardio:avr:${BOARD}" - else - FQBN="keyboardio:${ARCH}:${BOARD}" - fi + : "${ARCH:=avr}" + FQBN="keyboardio:${ARCH}:${BOARD}" fi fi