su8y opened a new pull request, #7620: URL: https://github.com/apache/gravitino/pull/7620
### What changes were proposed in this pull request? - Added `set -e` to ensure the script exits immediately upon any command failure. - Resolved the `bin` directory path to an absolute path to ensure consistent behavior regardless of the script's invocation location. - Implemented proper error handling when the `CLI_JAR` is missing or not found, with a clear and informative error message. ### Why are the changes needed? Fix: #7617 ### Does this PR introduce _any_ user-facing change? - If the CLI JAR is missing, users will now see a clear error message. - The CLI script will behave consistently, even when executed from different directories. ### How was this patch tested? - Manually ran the updated gcli.sh script with and without the CLI JAR present. - Verified the script terminates correctly with an error when the JAR is missing. - Confirmed the correct JAR is found and launched when present, from various working directories. -- 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]
