mirror of https://github.com/knative/pkg.git
Make verify-codegen.sh compatible with OS X (#54)
OS X's `mktemp` has no `-p` flag.
This commit is contained in:
parent
6eff182b87
commit
eedc0a939d
|
@ -20,7 +20,7 @@ set -o pipefail
|
|||
|
||||
source $(dirname $0)/../vendor/github.com/knative/test-infra/scripts/library.sh
|
||||
|
||||
readonly TMP_DIFFROOT="$(mktemp -d -p ${REPO_ROOT_DIR})"
|
||||
readonly TMP_DIFFROOT="$(mktemp -d ${REPO_ROOT_DIR}/tmpdiffroot.XXXXXX)"
|
||||
|
||||
cleanup() {
|
||||
rm -rf "${TMP_DIFFROOT}"
|
||||
|
|
Loading…
Reference in New Issue