ci: Don't install deps if running as non-root

This way we run in Prow too.
This commit is contained in:
Colin Walters 2021-02-02 21:08:54 +00:00
parent c216a438b8
commit afb032e693

View File

@ -7,7 +7,7 @@ set -xeuo pipefail
# cosa buildroot container
# https://github.com/coreos/coreos-assembler/pull/730
# And using `yum` at all means we can flake on fetching rpm metadata
if [ -n "${SKIP_INSTALLDEPS:-}" ]; then
if [ -n "${SKIP_INSTALLDEPS:-}" ] || test "$(id -u)" != 0; then
exit 0
fi