make 'prompt before flashing' private

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

@ -207,7 +207,7 @@ _ensure_sketch_found() {
} }
prompt_before_flashing() { _prompt_before_flashing() {
flashing_instructions=$(_arduino_prop 'build.flashing_instructions') flashing_instructions=$(_arduino_prop 'build.flashing_instructions')
if [ "x${flashing_instructions}x" = "xx" ]; then if [ "x${flashing_instructions}x" = "xx" ]; then
@ -234,7 +234,7 @@ flash() {
# If we -can-, then we should skip over the "reset to bootloader" thing # If we -can-, then we should skip over the "reset to bootloader" thing
port="${DEVICE_PORT_BOOTLOADER:=$(_find_bootloader_port)}" port="${DEVICE_PORT_BOOTLOADER:=$(_find_bootloader_port)}"
if [ -z "${port}" ]; then if [ -z "${port}" ]; then
prompt_before_flashing _prompt_before_flashing
# This is defined in the (optional) user config. # This is defined in the (optional) user config.
# shellcheck disable=SC2154 # shellcheck disable=SC2154

Loading…
Cancel
Save