github-actions[bot] commented on PR #31587:
URL: https://github.com/apache/doris/pull/31587#issuecomment-1975628453

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/8135377876";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In env.sh line 263:
           if [[ "${JDK_17}" ]]; then
                 ^---------^ SC2244 (style): Prefer explicit -n to check 
non-empty string (or use =/-ne to check boolean/integer).
   
   Did you mean: 
           if [[ -n "${JDK_17}" ]]; then
   
   
   In env.sh line 284:
               if [[ "${JDK_17}" ]]; then
                     ^---------^ SC2244 (style): Prefer explicit -n to check 
non-empty string (or use =/-ne to check boolean/integer).
   
   Did you mean: 
               if [[ -n "${JDK_17}" ]]; then
   
   For more information:
     https://www.shellcheck.net/wiki/SC2244 -- Prefer explicit -n to check 
non-e...
   ----------
   
   You can address the above issues in one of three ways:
   1. Manually correct the issue in the offending shell script;
   2. Disable specific issues by adding the comment:
     # shellcheck disable=NNNN
   above the line that contains the issue, where NNNN is the error code;
   3. Add '-e NNNN' to the SHELLCHECK_OPTS setting in your .yml action file.
   
   
   
   ```
   </details>
   
   <details>
   <summary>shfmt errors</summary>
   
   ```
   
   'shfmt ' returned error 1 finding the following formatting issues:
   
   ----------
   --- env.sh.orig
   +++ env.sh
   @@ -296,7 +296,6 @@
        fi
        export JAVA
    
   -
        JAVA_VER="$("${JAVAP}" -verbose java.lang.String | grep "major version" 
| cut -d " " -f5)"
        if [[ "${JAVA_VER}" -lt 52 ]]; then
            echo "Error: require JAVA with JDK version at least 1.8"
   ----------
   
   You can reformat the above files to meet shfmt's requirements by typing:
   
     shfmt  -w filename
   
   
   ```
   </details>
   
   
   


-- 
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: commits-unsubscr...@doris.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to