diff options
author | Colin Walters <walters@verbum.org> | 2021-02-02 21:08:54 +0000 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2021-02-02 21:08:54 +0000 |
commit | afb032e6938fe0ce7480156f65c3b487a9234dfb (patch) | |
tree | 6e617fa6b07a8df427052face3b230a64d2d956e /ci/installdeps.sh | |
parent | c216a438b8f9b4b8405bcac35211aa21d5e341a8 (diff) | |
download | ostree-afb032e6938fe0ce7480156f65c3b487a9234dfb.tar.gz |
ci: Don't install deps if running as non-root
This way we run in Prow too.
Diffstat (limited to 'ci/installdeps.sh')
-rwxr-xr-x | ci/installdeps.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/installdeps.sh b/ci/installdeps.sh index 7d7c723e..6880d91d 100755 --- a/ci/installdeps.sh +++ b/ci/installdeps.sh @@ -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 |