about summary refs log tree commit diff stats
path: root/home-manager/config/yambar/scripts/disk
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/disk
parentFix(hm/conf/lf/cmds): Rework some of them (diff)
downloadnixos-config-cb3362644cb631a3d31c5091ab663c4744b3e132.tar.gz
nixos-config-cb3362644cb631a3d31c5091ab663c4744b3e132.zip
Fix(hm/conf/yambar/scripts): Quote scripts
Diffstat (limited to 'home-manager/config/yambar/scripts/disk')
-rwxr-xr-xhome-manager/config/yambar/scripts/disk6
1 files changed, 3 insertions, 3 deletions
diff --git a/home-manager/config/yambar/scripts/disk b/home-manager/config/yambar/scripts/disk
index d96a8683..9b405dc4 100755
--- a/home-manager/config/yambar/scripts/disk
+++ b/home-manager/config/yambar/scripts/disk
@@ -5,9 +5,9 @@ SHELL_LIBRARY_VERSION="1.1.3" . %SHELL_LIBRARY_PATH
 
 # Main loop
 while true; do
-    # vars
-    used_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Used:/ ) { print $2 } } ' | head -n1)
-    all_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Device size:/ ) { print $3 } } ' | head -n1 | tr -d "GiB")
+  # vars
+  used_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Used:/ ) { print $2 } } ' | head -n1)
+  all_space=$(btrfs filesystem usage /srv 2> /dev/null | awk '{if ( /Device size:/ ) { print $3 } } ' | head -n1 | tr -d "GiB")
 
 
   # Check space available (4) and percentage used (5)