diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-01-06 22:02:16 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-01-06 22:02:16 +0100 |
commit | ac29193887f21020e921c7b1a4b15eae786eb1a5 (patch) | |
tree | e12491faa8d999f0413941ceb5f78e93385facda | |
parent | e3cc67925a4c75f14af06f031c3bb17d23e1a8f3 (diff) |
sort ls by time
-rwxr-xr-x | bin/ftpsync | 2 |
1 files changed, 1 insertions, 1 deletions
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 ;; *) |