Skip to content

Commit

Permalink
ffac-ssid-changer: silence grep command
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Jun 11, 2024
1 parent 6714043 commit 833dd04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffac-ssid-changer/shsrc/ssid-changer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ if [ "$CHECK" -gt 0 ] || [ "$DISABLED" = '1' ]; then
# check status for all physical devices
for HOSTAPD in /var/run/hostapd-*.conf; do
[ -e "$HOSTAPD" ] || break # handle the case of no hostapd-* files
grep "^bridge=br-client" "$HOSTAPD" || break # handle case of private wifi
grep "^bridge=br-client" "$HOSTAPD" > /dev/null || break # handle case of private wifi
# shellcheck disable=SC2086 # ONLINE_SSIDs has multiple lines
ONLINE_SSID="$(echo $ONLINE_SSIDs | awk -F '~' -v l=$((LOOP*2)) '{print $l}')"
LOOP=$((LOOP+1))
Expand Down

0 comments on commit 833dd04

Please sign in to comment.