-
Notifications
You must be signed in to change notification settings - Fork 312
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
chore(script): Script migrate_node.sh supports using specified config file when using shell config #1370
Conversation
run.sh
Outdated
@@ -1660,6 +1663,11 @@ function run_migrate_node() | |||
CLUSTER="$2" | |||
shift | |||
;; | |||
-p|--config) | |||
CONFIG="$2" | |||
CONFIG_SPECIFIED=1 |
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.
CONFIG_SPECIFIED
can be removed, just judge whether CONFIG
is empty or not?
692da59
to
863a05e
Compare
If it's necessary to be compatible with the previous format of arguments for
|
0b0ac9d
to
73a8aef
Compare
scripts/migrate_node.sh
Outdated
if [ $# -eq 4 ]; then | ||
cluster=$1 | ||
else | ||
CONFIG_SPECIFIED=1 |
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.
If it is necessary to check whether option is -f
?
What problem does this PR solve?
#1368