Skip to content

Commit

Permalink
Merge pull request #117 from jcvenegas/fix-ci
Browse files Browse the repository at this point in the history
ci: Fix ci when tmp_dir is not set.
  • Loading branch information
Julio Montes committed Jul 31, 2018
2 parents 6e69deb + b4a6303 commit edda8cc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/lib.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export GOPATH=${GOPATH:-${HOME}/go}
readonly kata_arch_sh="${GOPATH}/src/github.com/kata-containers/tests/.ci/kata-arch.sh"
hub_bin="${tmp_dir}/hub-bin"
hub_bin="hub-bin"

get_kata_arch(){
go get -u github.com/kata-containers/tests || true
Expand Down Expand Up @@ -69,6 +69,8 @@ build_hub() {
if cmd=$(command -v hub); then
hub_bin="${cmd}"
return
else
hub_bin="${tmp_dir:-/tmp}/hub-bin"
fi

local hub_repo="github.com/github/hub"
Expand Down

0 comments on commit edda8cc

Please sign in to comment.