Skip to content

unhandled 'which' stderror prompt during vagrant build #228

@iMingLei

Description

@iMingLei

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions