From 7f0ffe1431102593c8ec7970c9e3fa2a39a36186 Mon Sep 17 00:00:00 2001 From: Linux User Date: Fri, 19 Aug 2022 16:07:39 +0000 Subject: [PATCH] fix disk script --- .local/scripts/0050_5_disk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.local/scripts/0050_5_disk b/.local/scripts/0050_5_disk index e4337f2..359da15 100755 --- a/.local/scripts/0050_5_disk +++ b/.local/scripts/0050_5_disk @@ -3,7 +3,7 @@ COLOR1="#00FF90" COLOR2="#00A45D" -used=$(df -h / | sed -n '1!p' | cut -d' ' -f22) -total=$(df -h / | sed -n '1!p' | cut -d' ' -f16) +used=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f3) +total=$(echo $(df -h / | sed -n '1!p') | cut -d' ' -f2) echo "^b$COLOR1^^c$COLOR2^  ^c$COLOR1^^b$COLOR2^ $used/$total ^d^"