prevent accidental destruction of everything
This commit is contained in:
parent
be5802b120
commit
36de0d4c62
|
@ -5,6 +5,11 @@ if [[ -z "$1" || -z "$2" ]] ; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "$2" -lt 100 ]] ; then
|
||||||
|
echo "density must not be lower than 100" >&2
|
||||||
|
exit 2
|
||||||
|
fi
|
||||||
|
|
||||||
timestamp () {
|
timestamp () {
|
||||||
t="`echo \"$1\" |sed -ne 's/^.*@zb-//p' |tr 'p_' '+ '`"
|
t="`echo \"$1\" |sed -ne 's/^.*@zb-//p' |tr 'p_' '+ '`"
|
||||||
[[ -z "$t" ]] && return 1
|
[[ -z "$t" ]] && return 1
|
||||||
|
|
Loading…
Reference in a new issue