thiiiink i fixed both sh

This commit is contained in:
2026-04-26 21:11:23 -06:00
parent cab036b9bf
commit c029c0ffde
4 changed files with 61 additions and 4 deletions
@@ -22,8 +22,9 @@ send_discord_webhook() {
while true; do #infinite loop
# scan for those vendor ids
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/-e }")
## eval "vendor_ids=('00:25:DF' '00:58:28' '00:C0:D4' '84:70:03' 'CO:1C:6A' '01' '02' '03' '04' '05' '06' '07' '08' '09' '0B' '77' '99'); while true; do bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^} 2>/dev/null; done"
blescan=$(eval "bluetoothctl -t 10 scan on | awk '{print \$3}' | grep ${vendor_ids[@]/#/ -e ^}"
# -n is if length of string is non zero
if [ -n "$blescan" ]; then
# LE detected poweroff to cryptdisk and notify
# alert spammmm