Browse Source

Merge "Fix install-bindeps.sh to work without sudo"

changes/64/785564/1
Zuul 2 weeks ago
committed by Gerrit Code Review
parent
commit
36b625c526
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tools/install-bindeps.sh

+ 2
- 1
tools/install-bindeps.sh View File

@ -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…
Cancel
Save