Always use OSX's mktemp on OSX. (#486)

pull/499/head^2
Josh Rabinowitz 5 years ago committed by GitHub
parent baf6c4113b
commit 49fa952e68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
### Bugfixes
- Fix for when user sets PATH to favor gnu mktemp on MacOS/OSX (#485)
- Support SECRETS_PINENTRY env var for gnupg --pinentry-mode parameter (#221)
## Version 0.2.6

@ -17,7 +17,8 @@ function __temp_file_osx {
# able if available. Fallback locations if _CS_DARWIN_USER_TEMP_DIR is not
# available are TMPDIR and /tmp."
filename=$(mktemp -t _git_secret )
# we use /usr/bin/mktemp in case there's another mktemp available. See #485
filename=$(/usr/bin/mktemp -t _git_secret )
# On OSX this can make a filename like
# '/var/folders/nz/vv4_91234569k3tkvyszvwg90009gn/T/_git_secret.HhvUPlUI'
echo "$filename";

Loading…
Cancel
Save