Make sure we name temp files 'git-secret-*' (#428)

* pass mktemp a template on linux
* name tempfiles git_secret, not gitsecrets
This commit is contained in:
Josh Rabinowitz 2019-03-17 19:32:42 -04:00 committed by GitHub
parent 8737bdb26c
commit 71f3d3a4ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 3 deletions

View File

@ -12,7 +12,7 @@ function __replace_in_file_freebsd {
function __temp_file_freebsd {
: "${TMPDIR:=/tmp}"
local filename
filename=$(mktemp -t _gitsecrets_XXX )
filename=$(mktemp -t _git_secret_XXX )
echo "$filename";
}

View File

@ -8,8 +8,9 @@ function __replace_in_file_linux {
function __temp_file_linux {
: "${TMPDIR:=/tmp}"
local filename
filename=$(mktemp)
filename=$(mktemp -t _git_secret_XXX )
echo "$filename"
}

View File

@ -10,7 +10,7 @@ function __replace_in_file_osx {
function __temp_file_osx {
: "${TMPDIR:=/tmp}"
local filename
filename=$(mktemp -t _gitsecrets_XXX )
filename=$(mktemp -t _git_secret_XXX )
echo "$filename";
}