diff options
author | Leif Walsh <leif@tokutek.com> | 2011-07-24 20:27:07 +0200 |
---|---|---|
committer | p4bl0 <r@uzy.me> | 2011-07-24 20:27:07 +0200 |
commit | 006260555956124bf11997e59dca4ee9e1351841 (patch) | |
tree | 01af8c9e79c01337bea33f3c3ca1fd2de996f5e2 /post-receive.sh | |
parent | 31dffefdd3e1b721296283120fa5ae9c2273e4fc (diff) |
Changing mktemp calls and some two sed calls to make it work with BSD coreutils (and still GNU coreutils valid)
Diffstat (limited to 'post-receive.sh')
-rw-r--r-- | post-receive.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/post-receive.sh b/post-receive.sh index 1a40c81..e36d6f5 100644 --- a/post-receive.sh +++ b/post-receive.sh @@ -23,10 +23,10 @@ modified_files=`git log $range --name-status --pretty="format:" | \ deleted_files=`git log $range --name-status --pretty="format:" | \ grep -E '^D' | cut -f2 | sort | uniq` -tmpart=`mktemp` -tmpadd=`mktemp` -tmpmod=`mktemp` -tmpdel=`mktemp` +tmpart=`mktemp fugitiveXXXXXX` +tmpadd=`mktemp fugitiveXXXXXX` +tmpmod=`mktemp fugitiveXXXXXX` +tmpdel=`mktemp fugitiveXXXXXX` ls "$articles_dir"/* > "$tmpart" echo "$added_files" | tr " " "\n" > "$tmpadd" echo "$modified_files" | tr " " "\n" > "$tmpmod" |