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:
@@ -208,8 +208,8 @@ function setup() {
|
||||
|
||||
|
||||
|
||||
# Parameter 1: is optional '()?' and only alphanumeric characters are allowed and [.-] if not leading (due to: -oProxyCommand=...).
|
||||
base.set DOMAIN "${1}" '^([a-zA-Z0-9][a-zA-Z0-9.-]*)?$' || exit 1
|
||||
# Parameter 1: only alphanumeric characters are allowed and [.-] if not leading (due to: -oProxyCommand=...).
|
||||
base.set DOMAIN "${1}" '^[a-zA-Z0-9][a-zA-Z0-9.-]*$' optional
|
||||
setup "${DOMAIN}" \
|
||||
&& exit 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user