better formatting for fastdu humanreadable
This commit is contained in:
@@ -87,9 +87,14 @@ if [[ "$SUMMARY" -eq 1 ]]; then
|
||||
# Display one line
|
||||
processfolder "${what[@]}"
|
||||
else
|
||||
if [[ "$HUMAN" -eq 1 ]]; then
|
||||
FORMAT="%8s %s\n"
|
||||
else
|
||||
FORMAT="%d\t%s\n"
|
||||
fi
|
||||
# One size for each argument
|
||||
for dir in "${what[@]}"; do
|
||||
printf "%s\t%s\n" "$( processfolder "$dir" )" "$dir"
|
||||
printf "$FORMAT" "$( processfolder "$dir" )" "$dir"
|
||||
done
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user