Skip to content
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

fix: fix build.sh warning by shellcheck #3294

Merged
merged 3 commits into from
Sep 16, 2020

Conversation

xiagw
Copy link
Contributor

@xiagw xiagw commented Sep 8, 2020

What's the purpose of this PR

fix build.sh warning by shellcheck

Which issue(s) this PR fixes:

Fixes #

Brief changelog

XXXXX

Follow this checklist to help us incorporate your contribution quickly and easily:

  • Read the Contributing Guide before making this pull request.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Write necessary unit tests to verify the code.
  • Run mvn clean test to make sure this pull request doesn't break anything.

@codecov-commenter
Copy link

codecov-commenter commented Sep 8, 2020

Codecov Report

Merging #3294 into master will increase coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##             master    #3294      +/-   ##
============================================
+ Coverage     51.44%   51.45%   +0.01%     
- Complexity     2303     2304       +1     
============================================
  Files           442      442              
  Lines         13738    13738              
  Branches       1398     1398              
============================================
+ Hits           7067     7069       +2     
+ Misses         6180     6179       -1     
+ Partials        491      490       -1     
Impacted Files Coverage Δ Complexity Δ
...ervice/service/ReleaseMessageServiceWithCache.java 84.70% <0.00%> (-1.18%) 23.00% <0.00%> (-1.00%)
.../framework/apollo/spring/property/SpringValue.java 89.47% <0.00%> (+1.75%) 21.00% <0.00%> (+1.00%)
...rk/apollo/spring/property/SpringValueRegistry.java 88.88% <0.00%> (+5.55%) 11.00% <0.00%> (+1.00%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65feb41...bd18a78. Read the comment docs.

@@ -20,7 +20,7 @@ META_SERVERS_OPTS="-Ddev_meta=$dev_meta -Dfat_meta=$fat_meta -Duat_meta=$uat_met

# =============== Please do not modify the following content =============== #
# go to script directory
cd "${0%/*}"
cd "${0%/*}" || exit
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this change mean?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing parameters is "unstable" and "unsafe"
When an error occurs, just exit,

@nobodyiam nobodyiam merged commit 4d49504 into apolloconfig:master Sep 16, 2020
@nobodyiam nobodyiam added this to the 1.8.0 milestone Feb 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants