]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Switch from echo to printf for output without newlines
authorDanny Nguyen <danny@keeb.io>
Mon, 29 Jan 2018 15:49:26 +0000 (10:49 -0500)
committerJack Humbert <jack.humb@gmail.com>
Thu, 8 Feb 2018 20:15:12 +0000 (15:15 -0500)
tmk_core/avr.mk

index e11ba2e23e79a1a8f52cccf8e862b39b19d9e261..106b771507a2ee2e3e18528d4ecf9759ba766498 100644 (file)
@@ -172,11 +172,11 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size
        if grep -q -s Microsoft /proc/version; then \
                echo 'ERROR: AVR flashing cannot be automated within the Windows Subsystem for Linux (WSL) currently. Instead, take the .hex file generated and flash it using AVRDUDE, AVRDUDESS, or XLoader.'; \
        else \
+               printf "Detecting USB port, reset your controller now."; \
                ls /dev/tty* > /tmp/1; \
-               echo -e "Detecting USB port, reset your controller now.\c"; \
                while [ -z $$USB ]; do \
-                       echo -e ".\c"; \
                        sleep 0.5; \
+                       printf "."; \
                        ls /dev/tty* > /tmp/2; \
                        USB=`comm -13 /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
                        mv /tmp/2 /tmp/1; \