-
Notifications
You must be signed in to change notification settings - Fork 882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[KYUUBI #4078] [FOLLOWUP] fix shellcheck violations in scripts of /bin folder #4162
Conversation
1. "$@" is a array, we want use string to compare. so update "$@" => "$*" 2. `tty` mean execute the command, we can use $(tty) replace it 3. param $# is a number, compare number should use -gt/-lt,not >/<
1. "$@" is a array, we want use string to compare. so update "$@" => "$*" 2. `tty` mean execute the command, we can use $(tty) replace it 3. param $# is a number, compare number should use -gt/-lt,not >/< 4. not sure the /bin/kyuubi line 63 'exit -1' need modify? so the directory bin only have a shellcheck note in /bin/kyuubi
# Conflicts: # bin/docker-image-tool.sh
Thanks for the follow-up PR. And please try to put more details in the PR title and descriptions next time, which are critical for reviewing and feedback. @xiaoyuandajian |
bin/docker-image-tool.sh
Outdated
@@ -227,8 +227,8 @@ Examples: | |||
EOF | |||
} | |||
|
|||
# shellcheck disable=SC2199 | |||
if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove the used blank line.
Codecov Report
@@ Coverage Diff @@
## master #4162 +/- ##
============================================
+ Coverage 53.02% 53.22% +0.19%
Complexity 13 13
============================================
Files 548 569 +21
Lines 29938 31165 +1227
Branches 4023 4210 +187
============================================
+ Hits 15875 16587 +712
- Misses 12589 13004 +415
- Partials 1474 1574 +100
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -15,18 +15,15 @@ | |||
# See the License for the specific language governing permissions and | |||
# limitations under the License. | |||
# | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'd be better to keep this blank line, separating the license block and the single line comment below. @davidyuan1223
Do you consider fixing the disabled |
I'm not sure which error code should return, so I not fix the bug |
Alright, got it. |
you can choose a 1~255 code, I will use the code to fix the bug |
Thanks, merged to master. |
ok |
Why are the changes needed?
How was this patch tested?
Add some test cases that check the changes thoroughly including negative and positive cases if possible
Add screenshots for manual tests if appropriate
Run test locally before make a pull request