-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fixes #10013: ncf script doesn't call properly list-compatible-inputs properly #85
Conversation
b5b33e3
to
524f58c
Compare
Commit modified |
@@ -105,6 +199,21 @@ EOF | |||
|
|||
# MAIN | |||
# Simple but enough at the moment | |||
# Check if a server_version is defined | |||
if [ "$1" = "-V" ] |
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.
i'm really not convinced by -V to define the version, but I didn't have any better idea
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.
Not that bad
define_ncf_init() { | ||
# If we have a Rudder 3.1, we need to use standard ncf init | ||
is_version_valid "$RUDDER_VERSION" "3.1" | ||
if [ $? -eq 0 ] |
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.
You can just write
if is_version_valid "$RUDDER_VERSION" "3.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 is_version_valid "$RUDDER_VERSION" "3.1"
then
...
NCF_VERSION="0.x" | ||
fi | ||
# If we have a Rudder 3.2 or 4.0, we need to use ncf of version 1 | ||
is_version_valid "$RUDDER_VERSION" "[3.2 4.0]" |
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 usually use the form "${VARIABLE}" for variable expansion
@@ -105,6 +199,21 @@ EOF | |||
|
|||
# MAIN | |||
# Simple but enough at the moment | |||
# Check if a server_version is defined | |||
if [ "$1" = "-V" ] |
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.
Not that bad
524f58c
to
b500810
Compare
Commit modified |
OK, merging this PR |
https://www.rudder-project.org/redmine/issues/10013