diff options
author | Danny Nguyen <danny@keeb.io> | 2018-01-29 16:49:26 +0100 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2018-02-08 21:15:12 +0100 |
commit | c5d81a84a0519c78de1b5e165f5f2c1eb773bc11 (patch) | |
tree | 91b4baf25c1cb094c644607333247a15239d92ca | |
parent | 361810dca80b31b2ba236df8fdea48b89fedfd4d (diff) | |
download | qmk_firmware-c5d81a84a0519c78de1b5e165f5f2c1eb773bc11.tar.gz qmk_firmware-c5d81a84a0519c78de1b5e165f5f2c1eb773bc11.tar.xz |
Switch from echo to printf for output without newlines
-rw-r--r-- | tmk_core/avr.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tmk_core/avr.mk b/tmk_core/avr.mk index e11ba2e23..106b77150 100644 --- a/tmk_core/avr.mk +++ b/tmk_core/avr.mk @@ -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; \ |