From 1feadff32a4a15b4dce870779eb86e25676f6e10 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Tue, 23 Apr 2013 15:11:23 -0700 Subject: [PATCH] merge-forward: Fix for OS X mktemp --- tools/scripts/merge-forward | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/scripts/merge-forward b/tools/scripts/merge-forward index f7939fd79d..99329a3452 100755 --- a/tools/scripts/merge-forward +++ b/tools/scripts/merge-forward @@ -19,7 +19,10 @@ if [ -z "$RELPATH" -o -z "$REMOTE" -o -z "$MAINTBRANCH" -o -z "$DEVBRANCH" ] fi pushd "$RELPATH" >> /dev/null - TMPFILE=$(mktemp) + ## OS X: mktemp requires "-t prefix" argument + ## GNU: mktemp accepts optional -t pattern" argument + ## The string "merge-forward-XXXXXX" works as a prefix or pattern + TMPFILE=$(mktemp -t merge-forward-XXXXXX) set -x git fetch $REMOTE -- 2.25.1