diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-11 10:44:55 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2018-09-11 10:44:55 +0200 |
commit | 031b2ebdf6c8e4bfe0dae8ec227040ba817c1890 (patch) | |
tree | 210e2dd5b0d2d121c069d41e4b49768a85298679 | |
parent | fc2d60f963f6388bdfb56b32c84afa1ee5c0f887 (diff) | |
download | utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.gz utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.bz2 utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.tar.xz utils-031b2ebdf6c8e4bfe0dae8ec227040ba817c1890.zip |
support for .keep
-rw-r--r-- | rolling-directory | 2 |
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 | ||
14 | typeset -a findExtra | 14 | typeset -a findExtra |
15 | findExtra=(-not -path ${dir}/CACHEDIR.TAG) | 15 | findExtra=(-not -path ${dir}/CACHEDIR.TAG -not -name .keep) |
16 | 16 | ||
17 | resize() { | 17 | resize() { |
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 |