aboutsummaryrefslogtreecommitdiff
path: root/zb-cleanup
diff options
context:
space:
mode:
Diffstat (limited to 'zb-cleanup')
-rwxr-xr-xzb-cleanup5
1 files changed, 5 insertions, 0 deletions
diff --git a/zb-cleanup b/zb-cleanup
index 5f7c07b..fbefd4d 100755
--- a/zb-cleanup
+++ b/zb-cleanup
@@ -5,6 +5,11 @@ if [[ -z "$1" || -z "$2" ]] ; then
exit 1
fi
+if [[ "$2" -lt 100 ]] ; then
+ echo "density must not be lower than 100" >&2
+ exit 2
+fi
+
timestamp () {
t="`echo \"$1\" |sed -ne 's/^.*@zb-//p' |tr 'p_' '+ '`"
[[ -z "$t" ]] && return 1