From 006260555956124bf11997e59dca4ee9e1351841 Mon Sep 17 00:00:00 2001 From: Leif Walsh Date: Sun, 24 Jul 2011 20:27:07 +0200 Subject: Changing mktemp calls and some two sed calls to make it work with BSD coreutils (and still GNU coreutils valid) --- post-receive.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'post-receive.sh') 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" -- cgit v1.2.3