summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2016-01-06 22:02:16 +0100
committerPeter Palfrader <peter@palfrader.org>2016-01-06 22:02:16 +0100
commitac29193887f21020e921c7b1a4b15eae786eb1a5 (patch)
treee12491faa8d999f0413941ceb5f78e93385facda
parente3cc67925a4c75f14af06f031c3bb17d23e1a8f3 (diff)
sort ls by time
-rwxr-xr-xbin/ftpsync2
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
;;
*)