From 3b09be6f1564b8541c59d1a0b77337f13e0f7cc8 Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 12 Nov 2020 18:00:22 -0800 Subject: [PATCH] simplify a few -builder targets --- bin/kaleidoscope-builder | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index eeacf130..3ba8fbb4 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -69,26 +69,16 @@ cmd_configure_arduino_cli() { cmd_install_arduino_cli fi if [ -z "${ARDUINO_CLI_CONFIG}" ]; then - cmd_install_arduino_cli_config + _run_arduino_cli config init fi } -cmd_install_arduino_cli_config() { - _run_arduino_cli config init -} - cmd_install_arduino_core_kaleidoscope() { - cmd_install_arduino_core_avr - - cmd_install_arduino_core "keyboardio:avr" + _run_arduino_cli core install "keyboardio:avr" } cmd_install_arduino_core_avr() { - cmd_install_arduino_core "arduino:avr" -} - -cmd_install_arduino_core() { - _run_arduino_cli core install "$1" + _run_arduino_cli core install "arduino:avr" } _run_arduino_cli() {