nix-prefetch-git: fix incorrect mktemp usage

This commit is contained in:
Tomas Bravo 2021-12-14 09:47:39 -05:00 committed by Bjørn Forsman
parent 5c339b8855
commit 80ab168c4a

View file

@ -304,7 +304,7 @@ clone_user_rev() {
local rev="${3:-HEAD}"
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)
HOME="$tmpHomePath"
git lfs install