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

vcsh: Improve comments

parent c3fe5b51
No related branches found
No related tags found
No related merge requests found
...@@ -359,8 +359,8 @@ write_gitignore() { ...@@ -359,8 +359,8 @@ write_gitignore() {
done | sort -u) done | sort -u)
# Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files # Contrary to GNU mktemp, mktemp on BSD/OSX requires a template for temp files
# Use the template GNU mktemp defaults to # Using a template makes GNU mktemp default to $PWD and not #TMPDIR for tempfile location
# The downside to this is that we need to account for unset TMPDIR # To make every OS happy, set full path explicitly
tempfile=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal "could not create tempfile: '${tempfile}'" 51 tempfile=$(mktemp "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX") || fatal "could not create tempfile: '${tempfile}'" 51
echo '*' > "$tempfile" || fatal "could not write to '$tempfile'" 57 echo '*' > "$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