BASHrc Upgrades, Backup Script, DWM Enhancements, Hugo Helpers, Branch Controls #7

Merged
me merged 112 commits from dev into main 2025-12-01 09:50:55 -07:00
Showing only changes of commit 407bdb2ddf - Show all commits

View File

@@ -10,11 +10,11 @@ function storage {
fi fi
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" ]]; then 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"}'
fi fi
} }