From cb3362644cb631a3d31c5091ab663c4744b3e132 Mon Sep 17 00:00:00 2001 From: Soispha Date: Sun, 28 May 2023 22:11:24 +0200 Subject: Fix(hm/conf/yambar/scripts): Quote scripts --- home-manager/config/yambar/scripts/network | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'home-manager/config/yambar/scripts/network') diff --git a/home-manager/config/yambar/scripts/network b/home-manager/config/yambar/scripts/network index 0d98b110..7b0e4762 100755 --- a/home-manager/config/yambar/scripts/network +++ b/home-manager/config/yambar/scripts/network @@ -29,14 +29,14 @@ case "$backend" in while true; do ping_result=$(mktmp) - ping $ip_address -c $ping_number -q | awk 'BEGIN {FS="/"} END {print $5}' > $ping_result + ping $ip_address -c $ping_number -q | awk 'BEGIN {FS="/"} END {print $5}' > "$ping_result" - if [ "$(cat $ping_result | wc -l)" -eq 0 ]; then + if [ "$(cat "$ping_result" | wc -l)" -eq 0 ]; then echo "med|string|No connection" echo "" sleep $retest_if_con_fails else - echo "med|string|$(cat $ping_result) ms" + echo "med|string|$(cat "$ping_result") ms" echo "" sleep $retest fi -- cgit 1.4.1