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

   #### `sh-checker report`
   
   To get the full details, please check in the 
[job]("https://github.com/apache/doris/actions/runs/3219583062";) output.
   
   <details>
   <summary>shellcheck errors</summary>
   
   ```
   
   'shellcheck ' returned error 1 finding the following syntactical issues:
   
   ----------
   
   In benchmark/clickbench/prepare.sh line 9:
   checkout_home=$(pwd)
   ^-----------^ SC2034 (warning): checkout_home appears unused. Verify use (or 
export if used externally).
   
   
   In benchmark/clickbench/prepare.sh line 14:
   cd "$prepare_home"
       ^-----------^ SC2250 (style): Prefer putting braces around variable 
references even when not strictly required.
   
   Did you mean: 
   cd "${prepare_home}"
   
   
   In benchmark/clickbench/prepare.sh line 15:
   if [[ ! -d "$prepare_home/selectdb-qa" ]]; then
               ^-----------^ SC2250 (style): Prefer putting braces around 
variable references even when not strictly required.
   
   Did you mean: 
   if [[ ! -d "${prepare_home}/selectdb-qa" ]]; then
   
   
   In benchmark/clickbench/prepare.sh line 19:
   qa_home="$prepare_home/selectdb-qa"
            ^-----------^ SC2250 (style): Prefer putting braces around variable 
references even when not strictly required.
   
   Did you mean: 
   qa_home="${prepare_home}/selectdb-qa"
   
   
   In benchmark/clickbench/prepare.sh line 20:
   cd "$qa_home" && git stash && git checkout main && git pull && cd -
       ^------^ SC2250 (style): Prefer putting braces around variable 
references even when not strictly required.
   
   Did you mean: 
   cd "${qa_home}" && git stash && git checkout main && git pull && cd -
   
   For more information:
     https://www.shellcheck.net/wiki/SC2034 -- checkout_home appears unused. 
Ver...
     https://www.shellcheck.net/wiki/SC2250 -- Prefer putting braces around 
vari...
   ----------
   
   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:
   
   ----------
   --- benchmark/clickbench/prepare.sh.orig
   +++ benchmark/clickbench/prepare.sh
   @@ -2,14 +2,11 @@
    
    echo 'check if skip'
    
   -
    set -ex
    
    prepare_home=/home/ec2-user/
    checkout_home=$(pwd)
    
   -
   -
    echo '====prepare===='
    cd "$prepare_home"
    if [[ ! -d "$prepare_home/selectdb-qa" ]]; then
   @@ -18,5 +15,3 @@
    echo 'update scripts from g...@github.com:selectdb/selectdb-qa.git'
    qa_home="$prepare_home/selectdb-qa"
    cd "$qa_home" && git stash && git checkout main && git pull && cd -
   -
   -
   ----------
   
   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