From 1a5b904f5f4414d259919503aa3d3f6cb09afede Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Mon, 11 May 2026 08:44:55 +0200 Subject: Fix status script for wifi with spaces in name --- scripts/status-linux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/status-linux b/scripts/status-linux index a2061d1..6d107d0 100755 --- a/scripts/status-linux +++ b/scripts/status-linux @@ -35,7 +35,8 @@ fi #network="Network: $nwclean" # Thank you iwctl for saving us from this dreadful existence -network="$(iwctl station wlan0 show | grep 'Connected network' | awk '{print $3}')" +network="$(iwctl station wlan0 show | grep 'Connected network' | \ + awk '{$1=$2=""; $0=$0; print}' | sed 's/^ .//')" if [ "$(cat /sys/class/net/eth0/carrier)" = 1 ]; then if [ -z "$network" ]; then network="eth" -- cgit v1.3