From 88e501ba541662e433a84807a35bb99d356456b1 Mon Sep 17 00:00:00 2001 From: Richard Hartmann Date: Tue, 10 Sep 2013 01:34:42 +0200 Subject: [PATCH] vcsh: Support *BSD/OSX mktemp mktemp on *BSD/OSX expects a template whereas GNU mktemp does not. Pass a template to mktemp to make *BSD/OSX happy. github: fixes richih/vcsh#83 --- vcsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vcsh b/vcsh index 508c087..bf843dd 100755 --- a/vcsh +++ b/vcsh @@ -365,7 +365,7 @@ write_gitignore() { file="$new" done; done | sort -u) - tempfile=$(mktemp) || fatal "could not create tempfile" 51 + tempfile=$(mktemp tmp.XXXXXXXXXX) || fatal "could not create tempfile" 51 echo '*' > "$tempfile" || fatal "could not write to '$tempfile'" 57 for gitignore in $gitignores; do echo "$gitignore" | sed 's@^@!/@' >> "$tempfile" || fatal "could not write to '$tempfile'" 57 -- 2.39.5