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:
@@ -29,6 +29,6 @@ function testDomain() {
|
||||
}
|
||||
|
||||
# FQDN of server: e.g. host.example.net[:port]
|
||||
base.set REMOTE_HOST "${1}" '^(([a-zA-Z0-9][a-zA-Z0-9.-]*)+(:[0-9]+)?)?$'
|
||||
base.set REMOTE_HOST "${1}" '^([a-zA-Z0-9][a-zA-Z0-9.-]*)+(:[0-9]+)?$' optional
|
||||
testDomain "${REMOTE_HOST}" && exit 0
|
||||
exit 1
|
||||
|
||||
Reference in New Issue
Block a user