diff options
author | Peter Palfrader <peter@palfrader.org> | 2016-01-06 22:07:29 +0100 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2016-01-06 22:07:29 +0100 |
commit | f086b996fc19120dcba964466390475337013e56 (patch) | |
tree | 5b7b42a8b7c1022447bb93f38a4f46a19e20102b | |
parent | ac29193887f21020e921c7b1a4b15eae786eb1a5 (diff) |
And -1 for ls, for the less enlightened ones
-rwxr-xr-x | bin/ftpsync | 2 |
1 files changed, 1 insertions, 1 deletions
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 ;; *) |