Merge "Fix install-bindeps.sh to work without sudo"
This commit is contained in:
commit
36b625c526
|
@ -3,8 +3,9 @@
|
|||
set -ex
|
||||
|
||||
INSTALL_PACKAGE=$(which yum || which apt)
|
||||
SUDO=$(which sudo || true)
|
||||
|
||||
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
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue