-
Notifications
You must be signed in to change notification settings - Fork 23
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
kintsugi: Fix passing options from install-driver to driver. #100
kintsugi: Fix passing options from install-driver to driver. #100
Conversation
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
99b018f
to
40e39cc
Compare
lib/kintsugi/cli.rb
Outdated
@@ -106,8 +104,9 @@ def create_install_driver_subcommand | |||
end | |||
|
|||
def install_kintsugi_driver_globally(options) | |||
joined_options = options.count > 1 ? " #{options.join(" ")}" : "" |
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.
shouldn't this just be options.join(" ")
?
at the moment it ignores options if it has just one element
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.
oops, it's supposed to be options.count > 0
. The problem is that when is there are no options a trailing space is added which writes the driver command incorrectly:
driver = "kintsugi driver %O %A %B %P "
However I can use .rstrip
instead.
40e39cc
to
ffb905f
Compare
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
No description provided.