From 4aab959f5298fedf59265e1c25adf5d4c833b30a Mon Sep 17 00:00:00 2001 From: Jesse Vincent Date: Thu, 12 Nov 2020 10:26:18 -0800 Subject: [PATCH] Mark "_run_arduino_cli" as private --- bin/kaleidoscope-builder | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bin/kaleidoscope-builder b/bin/kaleidoscope-builder index b934bac2..eff625fc 100755 --- a/bin/kaleidoscope-builder +++ b/bin/kaleidoscope-builder @@ -74,7 +74,7 @@ configure_arduino_cli() { } install_arduino_cli_config() { - run_arduino_cli config init + _run_arduino_cli config init } install_arduino_core_kaleidoscope() { @@ -88,10 +88,10 @@ install_arduino_core_avr() { } install_arduino_core() { - run_arduino_cli core install "$1" + _run_arduino_cli core install "$1" } -run_arduino_cli() { +_run_arduino_cli() { ARDUINO_DIRECTORIES_USER=${ARDUINO_DIRECTORIES_USER} \ ARDUINO_DIRECTORIES_DATA=${ARDUINO_DIRECTORIES_DATA} \ ARDUINO_DIRECTORIES_DOWNLOADS=${ARDUINO_DIRECTORIES_DOWNLOADS} \ @@ -107,7 +107,7 @@ _arduino_prop() { _arduino_props() { if [ "x${_ARDUINO_PREFS}x" == "xx" ]; then - _ARDUINO_PREFS=$(run_arduino_cli --fqbn "${FQBN}" compile --show-properties "${SKETCH_FILE_PATH}") + _ARDUINO_PREFS=$(_run_arduino_cli --fqbn "${FQBN}" compile --show-properties "${SKETCH_FILE_PATH}") fi echo "$_ARDUINO_PREFS" } @@ -242,7 +242,7 @@ flash() { port="${DEVICE_PORT:=$(_find_device_port)}" fi - run_arduino_cli upload \ + _run_arduino_cli upload \ --fqbn "${FQBN}" \ --port "${port}" \ "${ARDUINO_VERBOSE}" @@ -303,7 +303,7 @@ compile() { _CMD_CXX="${CXX:-${COMPILER_PREFIX}${CXX_COMPILER_BASENAME}${COMPILER_SUFFIX}}" _CMD_CC="${CC:-${COMPILER_PREFIX}${C_COMPILER_BASENAME}${COMPILER_SUFFIX}}" _CMD_AR="${AR:-${COMPILER_PREFIX}${AR_BASENAME}${COMPILER_SUFFIX}}" - run_arduino_cli compile \ + _run_arduino_cli compile \ --fqbn "${FQBN}" \ --libraries "${KALEIDOSCOPE_DIR}/.." \ --build-path "${BUILD_PATH}" \