nix-prefetch-git: fix incorrect mktemp usage
This commit is contained in:
parent
5c339b8855
commit
80ab168c4a
1 changed files with 1 additions and 1 deletions
|
@ -304,7 +304,7 @@ clone_user_rev() {
|
||||||
local rev="${3:-HEAD}"
|
local rev="${3:-HEAD}"
|
||||||
|
|
||||||
if [ -n "$fetchLFS" ]; then
|
if [ -n "$fetchLFS" ]; then
|
||||||
tmpHomePath="$(mktemp -d -p nix-prefetch-git-tmp-home-XXXXXXXXXX)"
|
tmpHomePath="$(mktemp -d "${TMPDIR:-/tmp}/nix-prefetch-git-tmp-home-XXXXXXXXXX")"
|
||||||
exit_handlers+=(remove_tmpHomePath)
|
exit_handlers+=(remove_tmpHomePath)
|
||||||
HOME="$tmpHomePath"
|
HOME="$tmpHomePath"
|
||||||
git lfs install
|
git lfs install
|
||||||
|
|
Loading…
Reference in a new issue