continue removing support for the old config file

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

@ -20,17 +20,6 @@ set -e
######
_read_conf_files() {
for conf_file in \
"$(pwd)/.kaleidoscope-builder.conf"; do \
if [ -e "${conf_file}" ]; then
# shellcheck disable=SC1090
. "${conf_file}"
fi
done
}
cmd_configure_arduino_cli() {
if [ -z "${ARDUINO_CLI}" ]; then
cmd_install_arduino_cli
@ -159,17 +148,12 @@ cmd_compile() {
# This is defined in the (optional) user config.
# shellcheck disable=SC2154
${compile_HOOKS}
if [ -z ${FQBN} ]; then
if [ -e "${SKETCH_DIR}/.kaleidoscope-builder.conf" ]; then
# shellcheck disable=SC1090
BOARD="$(. "${SKETCH_DIR}"/.kaleidoscope-builder.conf && echo "${BOARD}")"
# shellcheck disable=SC1090
FQBN="$(. "${SKETCH_DIR}"/.kaleidoscope-builder.conf && echo "${FQBN}")"
if [ -n "${BOARD}" ]; then
: "${ARCH:=avr}"
FQBN="keyboardio:${ARCH}:${BOARD}"
fi
fi
fi
# shellcheck disable=SC2086
@ -256,8 +240,6 @@ if [ $# -lt 1 ]; then
exit 1
fi
_read_conf_files
# shellcheck disable=SC1090
if [[ -z "${ARCH}" && -n "${FQBN}" ]]; then

Loading…
Cancel
Save