Simplify some conditionals

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

@ -15,18 +15,16 @@ if [[ -z "${ARCH}" && -n "${FQBN}" ]]; then
ARCH=$(echo "${FQBN}" | sed -n -e 's/^[^:]\+:\([^:]\+\).*/\1/p')
fi
: "${ARCH:=avr}"
if [ "${ARCH}" = "virtual" ]; then
: "${FQBN:=keyboardio:virtual:${BOARD}}"
: "${COMPILER_PATH:=/usr/bin}"
COMPILER_PREFIX=""
else
ARCH="avr"
fi
if [ -z "${FQBN}" ]; then
: "${FQBN:=keyboardio:avr:${BOARD}}"
fi
: "${FQBN:=keyboardio:${ARCH}:${BOARD}}"
########
######## Host OS specific commands

Loading…
Cancel
Save