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

unhandled 'which' stderror prompt during vagrant build #228

Open
iMingLei opened this issue Feb 11, 2017 · 1 comment
Open

unhandled 'which' stderror prompt during vagrant build #228

iMingLei opened this issue Feb 11, 2017 · 1 comment

Comments

@iMingLei
Copy link

iMingLei commented Feb 11, 2017

There is a unhandled stderror in build.sh which will be prompt during vagrant build.

Vagrant\oxar\build.sh
Line 124: if [ "$(which ratom)" == "" ]; then

vagrant prompting after bash debug enable:

==> default: * Installing ratom *
==> default: ++ which ratom
==> default: which: no ratom in (/usr/local/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
==> default: + '[' '' == '' ']'
==> default: + cd /tmp/vagrant-deploy

it should be fixed as below.

- if [ "$(which ratom)" == "" ]; then
+ if [ "$(which ratom 2> /dev/null)" == "" ]; then

Testing after update:

==> default: * Installing ratom *
==> default: ++ which ratom
==> default: + '[' '' == '' ']'
==> default: + cd /tmp/vagrant-deploy

@iMingLei iMingLei changed the title which ratom error during vagrant build unhandled 'which' stderror prompt during vagrant build Feb 11, 2017
@iMingLei
Copy link
Author

iMingLei commented Feb 11, 2017

Same issue in

Vagrant\oxar\scripts\packages.sh
Line 105: #13: Bower support (since node.js will be installed by default)
Line 106: echo; echo * Installing Bower *; echo
Line 107: if [ "$(which bower)" == "" ]; then
Line 108: npm install -g bower

iMingLei added a commit to iMingLei/OXAR that referenced this issue Feb 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant