From 5094f584e5eb4f86729ff4adfb905c6f12810c28 Mon Sep 17 00:00:00 2001 From: Tim Pope Date: Thu, 1 Jul 2021 14:36:16 -0400 Subject: [PATCH] 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 --- etc/makefiles/sketch.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/makefiles/sketch.mk b/etc/makefiles/sketch.mk index 2d47d839..27fdb7cb 100644 --- a/etc/makefiles/sketch.mk +++ b/etc/makefiles/sketch.mk @@ -214,7 +214,7 @@ flash: ensure-device-port-defined $(info ) $(info When you're ready to proceed, press 'Enter'.) $(info ) - @$(shell read) + @$(shell read _) $(QUIET) $(ARDUINO_CLI) upload --fqbn $(FQBN) \ --input-dir "${OUTPUT_PATH}" \ --port $(KALEIDOSCOPE_DEVICE_PORT) $(ARDUINO_VERBOSE)