mirror of
https://github.com/sobolevn/git-secret
synced 2024-10-31 21:20:29 +00:00
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:
parent
8737bdb26c
commit
71f3d3a4ac
@ -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";
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
}
|
||||
|
||||
|
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user