Skip to content

Commit 79f0795

Browse files
cgwaltersopenshift-merge-robot
authored andcommitted
ci: Ensure HOME is set
Prow doesn't set this and it breaks our `cargo install`.
1 parent 57edf7e commit 79f0795

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ci/libbuild.sh

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
#!/usr/bin/bash
22

3+
# OpenShift Prow jobs don't set $HOME, but we need
4+
# one for cargo right now.
5+
if test -z "$HOME"; then
6+
export HOME=$(mktemp -d -t --suffix .prowhome)
7+
fi
8+
39
pkg_upgrade() {
410
echo "Running dnf -y distro-sync... $(date)"
511
dnf -y distro-sync

0 commit comments

Comments
 (0)