diff --git a/.local/bin/statusbar/sb-internet b/.local/bin/statusbar/sb-internet index 0c8d157..812238e 100755 --- a/.local/bin/statusbar/sb-internet +++ b/.local/bin/statusbar/sb-internet @@ -18,7 +18,7 @@ case "$state" in INTERFACE_DISABLED) str="WIFI DOWN" ;; *) str="$(printf "NO WIFI")";; esac -eth="$(cat /sys/class/net/enp0s31f6/operstate)" +eth="$(cat /sys/class/net/enp0s31f6/operstate &> /dev/null)" if [ "up" = "$eth" ]; then str="$(printf "%s / " "$str")" fi