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/disk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'home-manager/config/yambar/scripts/disk') 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) -- cgit 1.4.1