]> git.plutz.net Git - serve0/blobdiff - list.sh
minor optimisations
[serve0] / list.sh
diff --git a/list.sh b/list.sh
index 607ea201ed6580ef2a0d5087c72860600669708c..52b78b2b26878bda15a0e4d2f2fadec050dd2d07 100644 (file)
--- a/list.sh
+++ b/list.sh
@@ -69,7 +69,7 @@ list_items() {
   if   [ "$mode" = browse -a "$ORDER" = Date ]; then
     list_directories
     list_filemeta . |cut -f2- \
-    | xargs -d\n stat -c '%Y   %n' \
+    | xargs -rd'\n' stat -c '%Y        %n' \
     | sort -rn |cut -d/ -f2-
   elif [ "$mode" = browse -a "$ORDER" = Name ]; then
     list_directories
@@ -77,7 +77,7 @@ list_items() {
     | sort -k 2 |cut -d/ -f2-
   elif [ "$mode" = index  -a "$ORDER" = Date ]; then
     list_index |cut -f2- \
-    | xargs -d'\n' stat -c '%Y %n' \
+    | xargs -rd'\n' stat -c '%Y        %n' \
     | sort -rn | cut -d/ -f2-
   elif [ "$mode" = index  -a "$ORDER" = Name ]; then
     list_index | sort -k 2 | cut -d/ -f2-