accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [1/2] accumulo git commit: Work around OSX's mktemp not being the same as posix.
Date Tue, 22 Mar 2016 02:23:59 GMT
Repository: accumulo
Updated Branches:
  refs/heads/asf-site 25df52efb -> c31512ef4
  refs/heads/gh-pages 774cfb5eb -> 5b59f192f


Work around OSX's mktemp not being the same as posix.

Makes the (bad) assumption that '/tmp' is the tmpdir,
but that's probably safer than this hook not working
at all for some of our devs.


Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/5b59f192
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/5b59f192
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/5b59f192

Branch: refs/heads/gh-pages
Commit: 5b59f192f55c7485eed272c1efe05e9dcc53a51b
Parents: 774cfb5
Author: Josh Elser <elserj@apache.org>
Authored: Mon Mar 21 22:22:03 2016 -0400
Committer: Josh Elser <elserj@apache.org>
Committed: Mon Mar 21 22:22:03 2016 -0400

----------------------------------------------------------------------
 _devtools/git-hooks/post-commit | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/accumulo/blob/5b59f192/_devtools/git-hooks/post-commit
----------------------------------------------------------------------
diff --git a/_devtools/git-hooks/post-commit b/_devtools/git-hooks/post-commit
index 6c400c2..bbc6417 100755
--- a/_devtools/git-hooks/post-commit
+++ b/_devtools/git-hooks/post-commit
@@ -44,7 +44,7 @@ build_jekyll_site() {
   [[ $jekyll =~ $regex ]] || die "fatal: requires jekyll >= 3.0.3 to build"
 
   # prep the working location
-  local workdir; workdir=$(mktemp -d --tmpdir jekyll-XXXXXXXXXX) || die "fatal: unable to
allocate a temporary directory"
+  local workdir; workdir=$(mktemp -d /tmp/jekyll-XXXXXXXXXX) || die "fatal: unable to allocate
a temporary directory"
   trap "rm -rf '""$workdir""'" 0 1 2 3 15
 
   # actually generate the site


Mime
View raw message