commit 6fd844c8711480df73a34003a9db9a749f3e3e7b
parent 0dc9de9de7b8d1cf95fdc1d34e1f51c7fefd60bc
Author: Matsuda Kenji <info@mtkn.jp>
Date: Tue, 24 Jun 2025 12:42:13 +0900
fix bug
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/dwm_status b/bin/dwm_status
@@ -37,10 +37,10 @@ done
echo $eth >&2
echo $wifi >&2
-if [ -n "eth" ]; then
+if [ -n "$eth" ]; then
eth=$(ifconfig $eth | awk '/active/{printf "ETH "}')
fi
-if [ -n "wifi" ]; then
+if [ -n "$wifi" ]; then
wifi=$(ifconfig $wifi | awk '
/active/{printf "WIFI "}
/no network/{printf "down:"}