about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/scripts/network
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-28 22:11:24 +0200
committerSoispha <soispha@vhack.eu>2023-05-28 22:11:24 +0200
commitcb3362644cb631a3d31c5091ab663c4744b3e132 (patch)
tree0a3862bf9d15aced6a52ea4133556c21b5b2f62f /home-manager/config/yambar/scripts/network
parentFix(hm/conf/lf/cmds): Rework some of them (diff)
downloadnixos-config-cb3362644cb631a3d31c5091ab663c4744b3e132.zip
Fix(hm/conf/yambar/scripts): Quote scripts
Diffstat (limited to 'home-manager/config/yambar/scripts/network')
-rwxr-xr-xhome-manager/config/yambar/scripts/network6
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