Fix treeinfo.sh sorting order
only sort by the first field (that is the filename)
This commit is contained in:
parent
c49c7b5fdd
commit
0f4c88bb0f
1 changed files with 2 additions and 1 deletions
|
|
@ -1,2 +1,3 @@
|
||||||
#!/bin/sh
|
#!/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}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue