From 058178680fc7da4639170eb4d5971560f32a67d9 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Tue, 2 Feb 2021 18:26:25 +0000 Subject: [PATCH] ci: Skip installing deps if non-root Assume in the pet/dev container case the user already has deps. And for Prow we're using the buildroot container which should have them. --- ci/installdeps.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/installdeps.sh b/ci/installdeps.sh index 67f232cf..f902c3f4 100755 --- a/ci/installdeps.sh +++ b/ci/installdeps.sh @@ -6,7 +6,7 @@ set -xeuo pipefail dn=$(dirname $0) . ${dn}/libbuild.sh -if [ -n "${SKIP_INSTALLDEPS:-}" ]; then +if [ -n "${SKIP_INSTALLDEPS:-}" ] || test $(id -u) != 0; then exit 0 fi