github-actions[bot] commented on PR #35679:
URL: https://github.com/apache/doris/pull/35679#issuecomment-2140044624
#### `sh-checker report`
To get the full details, please check in the
[job]("https://github.com/apache/doris/actions/runs/9305533172") output.
<details>
<summary>shellcheck errors</summary>
```
'shellcheck ' returned error 1 finding the following syntactical issues:
----------
In bin/start_fe.sh line 252:
CUR_DATE=`date`
^----^ SC2006 (style): Use $(...) notation instead of legacy
backticks `...`.
Did you mean:
CUR_DATE=$(date)
For more information:
https://www.shellcheck.net/wiki/SC2006 -- Use $(...) notation instead of
le...
----------
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:
----------
--- bin/start_fe.sh.orig
+++ bin/start_fe.sh
@@ -181,11 +181,10 @@
if [[ "${RUN_CONSOLE}" -eq 1 ]]; then
echo "$1"
else
- echo "$1" >> "${STDOUT_LOGGER}"
+ echo "$1" >>"${STDOUT_LOGGER}"
fi
}
-
# check java version and choose correct JAVA_OPTS
java_version="$(
set -e
@@ -249,7 +248,7 @@
coverage_opt="${JACOCO_COVERAGE_OPT}"
fi
-CUR_DATE=`date`
+CUR_DATE=$(date)
log "start time: ${CUR_DATE}"
if [[ "${HELPER}" != "" ]]; then
----------
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]