Skip to content
Snippets Groups Projects
Commit b81e4c5c authored by Richard Hartmann's avatar Richard Hartmann
Browse files

Merge branch 'master' of github.com:RichiH/vcsh

parents fd04d0d9 2650689d
No related branches found
No related tags found
No related merge requests found
......@@ -365,7 +365,11 @@ write_gitignore() {
file="$new"
done;
done | sort -u)
tempfile=$(mktemp) || fatal "could not create tempfile" 51
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Use the template GNU mktemo defaults to
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment