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.
This commit is contained in:
Colin Walters 2021-02-02 18:26:25 +00:00 committed by OpenShift Merge Robot
parent 57978fe099
commit 058178680f

View File

@ -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