Allow cava_run.sh to take an argument (or default to /dev/ttyACM0)

This commit is contained in:
Yash Karandikar 2023-03-08 20:15:09 -06:00
parent a8b216604b
commit 00c210a6c2
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash
SERIAL=/dev/ttyACM0
SERIAL=${1:-/dev/ttyACM0}
sudo stty -F $SERIAL cs8 -cstopb -parenb 1000000
(cava cava -p ./config | sudo tee $SERIAL) >/dev/null