From 031b2ebdf6c8e4bfe0dae8ec227040ba817c1890 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Tue, 11 Sep 2018 10:44:55 +0200 Subject: support for .keep --- rolling-directory | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rolling-directory') diff --git a/rolling-directory b/rolling-directory index ce97021..d8a06e3 100644 --- a/rolling-directory +++ b/rolling-directory @@ -12,7 +12,7 @@ shift 2 [[ "${maxSize}" = <-> ]] || exit 2 typeset -a findExtra -findExtra=(-not -path ${dir}/CACHEDIR.TAG) +findExtra=(-not -path ${dir}/CACHEDIR.TAG -not -name .keep) resize() { echo "Resizing ${dir} to below $(numfmt --to=iec-i --suffix=B -- ${maxSize})..." >&2 -- cgit v1.2.3