pinebuds/uart_log.sh
Dom Rodriguez 8e3ac20145
refactor(scripts): Use #!/usr/bin/env as part of shebang
This resolves build errors in systems like NixOS, where `/bin/bash`
doesn't exist.
2023-05-19 00:45:38 +01:00

5 lines
105 B
Bash
Executable file

#!/usr/bin/env sh
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
echo "$num"
sudo minicom "port$num"