diff --git a/admin/treeinfo.sh b/admin/treeinfo.sh index 5108d2e0a..b51d9f688 100755 --- a/admin/treeinfo.sh +++ b/admin/treeinfo.sh @@ -1,2 +1,3 @@ #!/bin/sh -find -name DIR_INFO -printf '%-30h: ' -exec head -1 {} \; | sort | cut -c 1-92 +COLUMNS=$(tput cols) +find -name DIR_INFO -printf '%-30h: ' -exec head -1 {} \; | sort -k1,1 | cut -c 1-${COLUMNS:-92}