aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Damien Martin-Guillerez <dmarting@google.com>2016-05-25 13:30:38 +0000
committerGravatar Yue Gan <yueg@google.com>2016-05-25 13:38:36 +0000
commit7ac7a156ef0f88ebaa2facab6e99c7adad9fc61d (patch)
tree66e4674b787bd81a1542ee951e276a62408ac6cd
parent76f0ec687b0f53755ff21551cab6490e72f487bd (diff)
Fix mktemp call for old version of OS X
mktemp -d needs a template name for older version of OS X. See http://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/Bazel/JAVA_VERSION=1.7,PLATFORM_NAME=darwin-x86_64/563/console -- MOS_MIGRATED_REVID=123207650
-rwxr-xr-xsite/jekyll-tree.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/site/jekyll-tree.sh b/site/jekyll-tree.sh
index abd33236fe..e274f496e7 100755
--- a/site/jekyll-tree.sh
+++ b/site/jekyll-tree.sh
@@ -26,7 +26,7 @@ shift
readonly SL_ZIP=${PWD}/$1
# Create temporary directory that is removed when this script exits.
-readonly TMP=$(mktemp -d)
+readonly TMP=$(mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXX")
readonly OUT_DIR="$TMP/out"
trap "rm -rf ${TMP}" EXIT