Skip to content

Non-interactive install options: -y/--yes-to-all #199

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

Merged
merged 5 commits into from
Jun 6, 2016

Conversation

rouson
Copy link
Member

@rouson rouson commented Jun 6, 2016

Fixes #191 by adding the following option:

./install.sh -y

or equivalently

./install.sh --yes-to-all

will now causes a non-interactive build by assuming affirmative
responses to all user queries. Exception: if the user passes
an installation prefix (via -i or --install-prefix), the user
will be prompted for a password prior to the "make install" step.
To avoid this, execute as sudo ./install.sh... with the
consequence that all steps will execute with sudo privileges.

```
./install.sh -y
```
or equivalently
```
./install.sh --yes-to-all)
```
will now causes a non-interactive build by assuming affirmative
responses to all user queries.  Exception: if the user passes
an installation prefix (via -i or --install-prefix), the user
will be prompted for a password prior to the "make install" step.
To avoid this, execute as `sudo ./install.sh...` with the
consequence that all steps will execute with sudo privileges.
@rouson
Copy link
Member Author

rouson commented Jun 6, 2016

@zbeekman, I recommend adjusting the Travis-CI scripts to use this new option instead of the "yes | ./install.sh" approach. That would test this new option and would keep our testing more self-contained.

@zbeekman
Copy link
Collaborator

zbeekman commented Jun 6, 2016

LGTM

I'll adjust Travis-CI by pushing another commit to this branch before merging

Approved with PullApprove

@zbeekman
Copy link
Collaborator

zbeekman commented Jun 6, 2016

Ok, Assuming all tests pass, I'm happy to merge this

LGTM

Approved with PullApprove

@zbeekman zbeekman merged commit 3118348 into master Jun 6, 2016
@zbeekman zbeekman deleted the add-yes-to-all-install branch June 6, 2016 20:20
@rouson
Copy link
Member Author

rouson commented Jun 7, 2016

Thanks! I just deleted the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make install.sh viable in non-interactive mode
2 participants