From f086b996fc19120dcba964466390475337013e56 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Wed, 6 Jan 2016 22:07:29 +0100 Subject: And -1 for ls, for the less enlightened ones --- bin/ftpsync | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ftpsync b/bin/ftpsync index 1fc28bb..506c823 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 -rt) | grep -v '^_' > "${TO}/${TRACELIST}" + (cd ${tracedir} && ls -1rt) | grep -E -v '^_|^master$' > "${TO}/${TRACELIST}" fi ;; *) -- cgit v1.2.3