diff --git a/scripts/validate-config.sh b/scripts/validate-config.sh index 7b59dc7..ff55f1a 100755 --- a/scripts/validate-config.sh +++ b/scripts/validate-config.sh @@ -24,12 +24,13 @@ if ! grep -q '^\[server\]' "$CONFIG_FILE"; then exit 1 fi -if ! grep -q '^port\s*=' "$CONFIG_FILE"; then +# Fix: Use POSIX-compatible regex patterns +if ! grep -q '^[ \t]*port[ \t]*=' "$CONFIG_FILE"; then echo "Error: server port not configured" exit 1 fi -if ! grep -q '^host\s*=' "$CONFIG_FILE"; then +if ! grep -q '^[ \t]*host[ \t]*=' "$CONFIG_FILE"; then echo "Error: server host not configured" exit 1 fi