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

Fixes #13405: Improve command "rudder server upgrade-techniques" #185

Conversation

ncharles
Copy link
Member

@ncharles ncharles commented Sep 6, 2018

@ncharles ncharles force-pushed the bug_13405/improve_command_rudder_server_upgrade_techniques branch from fe650d9 to 55a514b Compare September 6, 2018 08:24
@ncharles
Copy link
Member Author

ncharles commented Sep 6, 2018

Commit modified

OPTIONS=uiofc:a:s
LONGOPTS=upgrade,initial,override,force,commit:,autoupdate-technique-library:,show

# Use pipe to be able to get exit code, without messages
Copy link
Member

Choose a reason for hiding this comment

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

The explanation is :

  • Use ! to avoid failing with set -e
  • Use $PIPESTATUS to get the right return code even with !

@ncharles ncharles force-pushed the bug_13405/improve_command_rudder_server_upgrade_techniques branch from 55a514b to ad184e2 Compare September 6, 2018 09:45
@ncharles
Copy link
Member Author

ncharles commented Sep 6, 2018

Commit modified

@ncharles ncharles force-pushed the bug_13405/improve_command_rudder_server_upgrade_techniques branch from ad184e2 to 22b659f Compare September 6, 2018 12:58
@ncharles
Copy link
Member Author

ncharles commented Sep 6, 2018

Commit modified

@ncharles ncharles force-pushed the bug_13405/improve_command_rudder_server_upgrade_techniques branch from 22b659f to b5e2922 Compare September 6, 2018 13:22
@ncharles
Copy link
Member Author

ncharles commented Sep 6, 2018

Commit modified

@Normation-Quality-Assistant

OK, merging this PR

@Normation-Rudder-Jenkins Normation-Rudder-Jenkins merged commit b5e2922 into Normation:branches/rudder/4.1 Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants