RockteMQ-AI commented on issue #541:
URL: 
https://github.com/apache/rocketmq-connect/issues/541#issuecomment-5235126551

   **Issue Evaluation**
   
   Category: `bug` | Status: **Confirmed**
   
   The script `bin/runconnect.sh` uses `[[` (a bash-ism) but is executed with 
`/bin/sh` (which on many systems like Ubuntu/Debian is `dash`, not `bash`). The 
`[[` construct is not supported in POSIX `sh`.
   
   **Root Cause:** Missing `#!/bin/bash` shebang or script is invoked with `sh` 
instead of `bash`. The `[[` conditional on lines 37, 41, 84, 87, 110 requires 
bash.
   **Impact:** Script fails to start on systems where `/bin/sh` is not bash.
   **Severity:** Medium — prevents Connect from starting on common Linux 
distributions.
   
   **Fix options:**
   1. Add `#!/bin/bash` shebang and ensure the script is invoked directly (not 
via `sh runconnect.sh`)
   2. Replace `[[` with POSIX-compatible `[` tests
   
   ---
   *Automated evaluation by github-manager*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to