forked from mirrors/qmk_firmware
Switch from echo to printf for output without newlines
This commit is contained in:
parent
361810dca8
commit
c5d81a84a0
1 changed files with 2 additions and 2 deletions
|
@ -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; \
|
||||
|
|
Loading…
Reference in a new issue