feat(shell-sync): validate_settings() part 1/3
This commit is contained in:
1 parent
b76f51bd80
commit
87d52e0905
1 file changed
+6
@@ -53,3 +53,9 @@ log_oauth_authorization_guidance() {
|
||||
fi
|
||||
}
|
||||
|
||||
validate_settings() {
|
||||
if ! [[ "$NUM_ACCOUNTS" =~ ^[1-9][0-9]*$ ]]; then
|
||||
log "Configuration error: NUM_ACCOUNTS must be a positive integer"
|
||||
return 1
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user