feat(shell-sync): validate_settings() part 1/3

This commit is contained in:
hoelee committed 2026-05-28 09:00:00 +08:00
1 parent b76f51bd80
commit 87d52e0905
1 file changed
+6
+6
View File
@@ -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