Make verify-codegen.sh compatible with OS X (#54)

OS X's `mktemp` has no `-p` flag.
This commit is contained in:
Adriano Cunha 2018-08-26 08:42:02 -07:00 committed by Knative Prow Robot
parent 6eff182b87
commit eedc0a939d
1 changed files with 1 additions and 1 deletions

View File

@ -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}"