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

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/3459281027";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In env.sh line 165:
       export DORIS_GCC_HOME="$(dirname "$(which gcc)")/.."
              ^------------^ SC2155 (warning): Declare and assign separately to 
avoid masking return values.
   
   
   In env.sh line 168:
   if [ ! -f "${DORIS_GCC_HOME}/bin/gcc" ];then
      ^-- SC2292 (style): Prefer [[ ]] over [ ] for tests in Bash/Ksh.
   
   Did you mean: 
   if [[ ! -f "${DORIS_GCC_HOME}/bin/gcc" ]];then
   
   For more information:
     https://www.shellcheck.net/wiki/SC2155 -- Declare and assign separately to 
...
     https://www.shellcheck.net/wiki/SC2292 -- Prefer [[ ]] over [ ] for tests 
i...
   ----------
   
   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
   @@ -165,7 +165,7 @@
        export DORIS_GCC_HOME="$(dirname "$(which gcc)")/.."
    fi
    
   -if [ ! -f "${DORIS_GCC_HOME}/bin/gcc" ];then
   +if [ ! -f "${DORIS_GCC_HOME}/bin/gcc" ]; then
        echo "Error: wrong directory DORIS_GCC_HOME=${DORIS_GCC_HOME}"
        exit 1
    fi
   ----------
   
   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