standardize steps to take before doing stuff with the sketch

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

@ -228,6 +228,7 @@ flash() {
_find_sketch _find_sketch
_ensure_sketch_found _ensure_sketch_found
_build_paths _build_paths
_set_executable_paths
# Check to see if we can see a keyboard bootloader port. # Check to see if we can see a keyboard bootloader port.
@ -256,6 +257,7 @@ hex_with_bootloader() {
_find_sketch _find_sketch
_ensure_sketch_found _ensure_sketch_found
_build_paths _build_paths
_set_executable_paths
: "${BOOTLOADER_PATH:=$(_arduino_prop 'runtime.platform.path')/bootloaders/$(_arduino_prop 'bootloader.file')}" : "${BOOTLOADER_PATH:=$(_arduino_prop 'runtime.platform.path')/bootloaders/$(_arduino_prop 'bootloader.file')}"
@ -357,6 +359,7 @@ clean() {
_find_sketch _find_sketch
_ensure_sketch_found _ensure_sketch_found
_build_paths _build_paths
_set_executable_paths
if [ -d "$OUTPUT_PATH" ]; then if [ -d "$OUTPUT_PATH" ]; then
rm -rf -- "${OUTPUT_PATH}" rm -rf -- "${OUTPUT_PATH}"
fi fi

Loading…
Cancel
Save