Fix missing then.

This commit is contained in:
2025-11-10 15:07:45 -07:00
parent 46d1bfb70e
commit 68eb84af52

View File

@@ -11,7 +11,7 @@ function storage {
if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then if [[ "$style" == "%" || "$style" == "pct" || "$style" == "percent" ]]; then
df -h $location | tail -n 1 | awk {print $5} df -h $location | tail -n 1 | awk {print $5}
elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]] elif [[ "$style" == "/" || "$style" == "use" || "$style" == "usage" ]]; then
df -h $location | tail -n 1 | awk {print $3"/"$2} df -h $location | tail -n 1 | awk {print $3"/"$2}
else else
df -h $location | tail -n 1 | awk {print $5" Free, "$3"/"$2" Used"} df -h $location | tail -n 1 | awk {print $5" Free, "$3"/"$2" Used"}