Use POSIX compatible shell read

With Dash, and presumably other shells that aren't Bash, calling read
with no arguments produces the error:

	/bin/sh: 1: read: arg count

Passing a dummy argument produces the desired behavior.

Signed-off-by: Tim Pope <code@tpope.net>
pull/1073/head
Tim Pope 3 years ago
parent 2907bdeeaa
commit 5094f584e5

@ -214,7 +214,7 @@ flash: ensure-device-port-defined
$(info ) $(info )
$(info When you're ready to proceed, press 'Enter'.) $(info When you're ready to proceed, press 'Enter'.)
$(info ) $(info )
@$(shell read) @$(shell read _)
$(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \ $(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \
--input-dir "${OUTPUT_PATH}" \ --input-dir "${OUTPUT_PATH}" \
--port $(KALEIDOSCOPE_DEVICE_PORT) $(ARDUINO_VERBOSE) --port $(KALEIDOSCOPE_DEVICE_PORT) $(ARDUINO_VERBOSE)

Loading…
Cancel
Save