From ac29193887f21020e921c7b1a4b15eae786eb1a5 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 6 Jan 2016 22:02:16 +0100 Subject: sort ls by time --- bin/ftpsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ftpsync b/bin/ftpsync index bf19183..1fc28bb 100755 --- a/bin/ftpsync +++ b/bin/ftpsync @@ -232,7 +232,7 @@ tracefile() { mv "${TO}/${TRACEHIERARCHY}".new "${TO}/${TRACEHIERARCHY}" cp "${TO}/${TRACEHIERARCHY}" "${TO}/${TRACEHIERARCHY}.mirror" - (cd ${tracedir} && ls ) | grep -v '^_' > "${TO}/${TRACELIST}" + (cd ${tracedir} && ls -rt) | grep -v '^_' > "${TO}/${TRACELIST}" fi ;; *) -- cgit v1.2.3