From 3b70d80fa85282ad90bb85c68bf4eceb5ae89a64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Mon, 2 Nov 2015 22:43:29 +0000 Subject: [PATCH] sudo or not sudo shall be the problem of the caller --- resolve-debbuilddeps.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/resolve-debbuilddeps.sh b/resolve-debbuilddeps.sh index 6ceef6b..7a9d035 100755 --- a/resolve-debbuilddeps.sh +++ b/resolve-debbuilddeps.sh @@ -18,8 +18,8 @@ if test -n "${SCHROOTNAME}"; then schroot -c "${SCHROOTNAME}" -u root -d / -- apt-get install -y dpkg-dev DEPS=$(schroot -c "${SCHROOTNAME}" -- dpkg-checkbuilddeps 2>&1 || true) else - sudo apt-get install -y dpkg-dev - sudo apt-get update + apt-get install -y dpkg-dev + apt-get update DEPS=$(dpkg-checkbuilddeps 2>&1 || true) fi DEPS=$(echo "$DEPS" | sed -n '/Unmet build dependencies/ { s,.*Unmet build dependencies: ,,g; s, ([^)]*),,g; s, *| *,|,g; p}') @@ -33,7 +33,7 @@ for pa in ${DEPS}; do break; fi else - if sudo apt-get -y install ${p}; then + if apt-get -y install ${p}; then success=1 break; fi