ci: Ensure HOME is set

Prow doesn't set this and it breaks our `cargo install`.
This commit is contained in:
Colin Walters 2021-02-03 18:11:41 +00:00 committed by OpenShift Merge Robot
parent 57edf7e638
commit 79f07957f5

View File

@ -1,5 +1,11 @@
#!/usr/bin/bash
# OpenShift Prow jobs don't set $HOME, but we need
# one for cargo right now.
if test -z "$HOME"; then
export HOME=$(mktemp -d -t --suffix .prowhome)
fi
pkg_upgrade() {
echo "Running dnf -y distro-sync... $(date)"
dnf -y distro-sync