diff options
Diffstat (limited to '')
-rwxr-xr-x | home-manager/config/yambar/scripts/network | 6 |
1 files changed, 3 insertions, 3 deletions
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 |