Use of base.set() parameter optional and remove exit 1, because is is obsolete.

This commit is contained in:
m8in
2026-06-15 21:52:57 +02:00
parent 3976a656c6
commit a5aa2d8833
15 changed files with 26 additions and 26 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ function snapshot() {
# Parameter 1: Only one of these values (MINUTELY, HOURLY, DAILY, MONTHLY, NONE) are allowed, or empty.
base.set MODE "${1}" '^(MINUTELY|HOURLY|DAILY|MONTHLY|NONE)?$' || exit 1
base.set MODE "${1}" '^(MINUTELY|HOURLY|DAILY|MONTHLY|NONE)$' optional
snapshot "${MODE}"
cleanup