Fix treeinfo.sh sorting order

only sort by the first field (that is the filename)
This commit is contained in:
Christian Thaeter 2011-05-12 19:30:36 +02:00
parent c49c7b5fdd
commit 0f4c88bb0f

View file

@ -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}