aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--trunk/lib/common.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/trunk/lib/common.sh b/trunk/lib/common.sh
index 2be3ec6..8d2bb2f 100644
--- a/trunk/lib/common.sh
+++ b/trunk/lib/common.sh
@@ -576,7 +576,8 @@ function gen_filelist {
# generate FILELIST.TXT
# usage: gen_filelist
- for file in `find | grep -e ".tgz$"`; do ls -l $file; done > FILELIST.TXT
+ find . -type f -name *.tgz -follow -print | sort | tr '\n' '\0' | \
+ xargs -0r ls -ldL --time-style=long-iso > FILELIST.TXT
echo "Created new FILELIST.TXT"
}