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:
@@ -99,9 +99,9 @@ function addAndCheckGitRepository() {
|
||||
}
|
||||
|
||||
# sanitizes all parameters
|
||||
base.set FOLDER "${1}" '^[-a-zA-Z0-9/:@._]*/$' || exit 1
|
||||
base.set RIGHTS "${2}" '^(readonly|writable)$' || exit 1
|
||||
base.set SUGGESTED_REPOSITORY "${3}" '^([-a-zA-Z0-9/:@._]*)?$' || exit 1
|
||||
base.set FOLDER "${1}" '^[-a-zA-Z0-9/:@._]*/$'
|
||||
base.set RIGHTS "${2}" '^(readonly|writable)$'
|
||||
base.set SUGGESTED_REPOSITORY "${3}" '^[-a-zA-Z0-9/:@._]*$' optional
|
||||
addAndCheckGitRepository \
|
||||
"${FOLDER:?"Missing FOLDER"}" \
|
||||
"${RIGHTS:?"Missing RIGHTS"}" \
|
||||
|
||||
Reference in New Issue
Block a user