mirror of
https://github.com/m8tin/cis.git
synced 2026-11-02 14:17:24 +01:00
Use of base.set() parameter optional and remove exit 1, because is is obsolete.
This commit is contained in:
15 files changed
+26
-26
No files matched your search
@@ -136,8 +136,8 @@ function defineAuthorizedKeysOfUser() {
|
||||
}
|
||||
|
||||
# sanitizes all parameters
|
||||
base.set DEFINITIONS "${1}" '^[-a-zA-Z0-9/:@._]*$' || exit 1
|
||||
base.set USER "${2}" '^[-a-zA-Z0-9/:@._]*$' || exit 1
|
||||
base.set DEFINITIONS "${1}" '^[-a-zA-Z0-9/:@._]*$'
|
||||
base.set USER "${2}" '^[-a-zA-Z0-9/:@._]*$'
|
||||
defineAuthorizedKeysOfUser \
|
||||
"${DEFINITIONS:?"Missing DEFINITIONS"}" \
|
||||
"${USER:?"Missing USER"}" \
|
||||
|
||||
Reference in new issue
Block a user