From 0f4c88bb0f9659454274178f6e3e78f206fcdbf1 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Thu, 12 May 2011 19:30:36 +0200 Subject: [PATCH] Fix treeinfo.sh sorting order only sort by the first field (that is the filename) --- admin/treeinfo.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}