From 71b1979e0c9824f1023ac866ff69b0d389a1548b Mon Sep 17 00:00:00 2001 From: Federico Ressi Date: Thu, 8 Apr 2021 12:26:42 +0200 Subject: [PATCH] Fix install-bindeps.sh to work without sudo Change-Id: Idce7dfb02cb6a8657f83458c5e20e682b012f348 --- tools/install-bindeps.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/install-bindeps.sh b/tools/install-bindeps.sh index f940cacb8..454b1302b 100755 --- a/tools/install-bindeps.sh +++ b/tools/install-bindeps.sh @@ -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