mirror of
https://github.com/m8tin/cis.git
synced 2026-08-01 11:47:31 +02:00
Use of base.set() parameter optional and remove exit 1, because is is obsolete.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user