Switch to find over ls -l
This commit is contained in:
parent
b1de7e0d20
commit
49f3e2a10c
|
@ -6,7 +6,7 @@ mkdir -p "$BKPPATH"
|
|||
|
||||
NOW=$(date +%s)
|
||||
|
||||
num=$(ls -l /dev/ttyACM* | rev | cut -c 1)
|
||||
num=$(find /dev -name 'ttyACM*' | sort | rev | cut -c 1)
|
||||
echo com is: "$num"
|
||||
mapfile -t splitPorts <<< "$num"
|
||||
echo "This tool assumes your buds are the only thing connected and are enumerated {right,left} order. YMMV"
|
||||
|
|
5
clear.sh
5
clear.sh
|
@ -1,2 +1,3 @@
|
|||
#!/bin/bash
|
||||
make T=open_source -j DEBUG=1 clean
|
||||
#!/bin/sh
|
||||
|
||||
make -j "$(nproc)" T=open_source DEBUG=1 clean
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
num=$(ls -l /dev/ttyACM* | rev | cut -c 1)
|
||||
num=$(find /dev -name 'ttyACM*' | sort | rev | cut -c 1)
|
||||
echo com is: "$num"
|
||||
mapfile -t splitPorts <<< "$num"
|
||||
echo "This tool assumes your buds are the only thing connected and are enumerated {right,left} order. YMMV"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#! /bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
num=$(ls -l /dev/ttyUSB* | rev | cut -c 1)
|
||||
num=$(find /dev -name 'ttyUSB*' | rev | cut -c 1)
|
||||
echo "$num"
|
||||
sudo minicom "port$num"
|
||||
|
|
Loading…
Reference in New Issue