Fix install-bindeps.sh to work without sudo
Change-Id: Idce7dfb02cb6a8657f83458c5e20e682b012f348
This commit is contained in:
parent
e18d15f4e4
commit
71b1979e0c
@ -3,8 +3,9 @@
|
|||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
INSTALL_PACKAGE=$(which yum || which apt)
|
INSTALL_PACKAGE=$(which yum || which apt)
|
||||||
|
SUDO=$(which sudo || true)
|
||||||
|
|
||||||
if ! tox -e bindep ; then
|
if ! tox -e bindep ; then
|
||||||
.tox/bindep/bin/bindep -b | xargs -r sudo "${INSTALL_PACKAGE}" install -y
|
.tox/bindep/bin/bindep -b | xargs -r ${SUDO} "${INSTALL_PACKAGE}" install -y
|
||||||
.tox/bindep/bin/bindep
|
.tox/bindep/bin/bindep
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user