mirror of
https://github.com/qmk/qmk_firmware.git
synced 2024-11-26 13:16:44 +00:00
Add -e to enable interpretation of escape characters
This commit is contained in:
parent
8e0d9e2637
commit
fe8942e55c
@ -173,10 +173,10 @@ avrdude: $(BUILD_DIR)/$(TARGET).hex check-size
|
|||||||
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.'; \
|
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 \
|
else \
|
||||||
ls /dev/tty* > /tmp/1; \
|
ls /dev/tty* > /tmp/1; \
|
||||||
echo "Detecting USB port, reset your controller now.\c"; \
|
echo -e "Detecting USB port, reset your controller now.\c"; \
|
||||||
while [ -z $$USB ]; do \
|
while [ -z $$USB ]; do \
|
||||||
sleep 1; \
|
sleep 1; \
|
||||||
echo ".\c"; \
|
echo -e ".\c"; \
|
||||||
ls /dev/tty* > /tmp/2; \
|
ls /dev/tty* > /tmp/2; \
|
||||||
USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
|
USB=`diff /tmp/1 /tmp/2 | grep -o '/dev/tty.*'`; \
|
||||||
done; \
|
done; \
|
||||||
|
Loading…
Reference in New Issue
Block a user