summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2018-09-11 10:44:55 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2018-09-11 10:44:55 +0200
commit031b2ebdf6c8e4bfe0dae8ec227040ba817c1890 (patch)
tree210e2dd5b0d2d121c069d41e4b49768a85298679
parentfc2d60f963f6388bdfb56b32c84afa1ee5c0f887 (diff)
downloadutils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar
utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.gz
utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.bz2
utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.xz
utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.zip
support for .keep
-rw-r--r--rolling-directory2
1 files changed, 1 insertions, 1 deletions
diff --git a/rolling-directory b/rolling-directory
index ce97021..d8a06e3 100644
--- a/rolling-directory
+++ b/rolling-directory
@@ -12,7 +12,7 @@ shift 2
12[[ "${maxSize}" = <-> ]] || exit 2 12[[ "${maxSize}" = <-> ]] || exit 2
13 13
14typeset -a findExtra 14typeset -a findExtra
15findExtra=(-not -path ${dir}/CACHEDIR.TAG) 15findExtra=(-not -path ${dir}/CACHEDIR.TAG -not -name .keep)
16 16
17resize() { 17resize() {
18 echo "Resizing ${dir} to below $(numfmt --to=iec-i --suffix=B -- ${maxSize})..." >&2 18 echo "Resizing ${dir} to below $(numfmt --to=iec-i --suffix=B -- ${maxSize})..." >&2