Fix using non-absolute paths with mktemp
This commit is contained in:
parent
156ef9ab54
commit
7c6b704962
@ -102,7 +102,7 @@ build-home() {
|
|||||||
|
|
||||||
# Clone our repo into a temporary directory
|
# Clone our repo into a temporary directory
|
||||||
log "Cloning repository into temporary directory"
|
log "Cloning repository into temporary directory"
|
||||||
local tmpdir="$(mktemp -d "tmp.$USER.$_name.XXXXXXXX")"
|
local tmpdir="$(mktemp -d "tmp.$USER.$_name.XXXXXXXX" -p "/tmp")"
|
||||||
trap "cleanup $tmpdir" EXIT
|
trap "cleanup $tmpdir" EXIT
|
||||||
pushd "$tmpdir" > /dev/null 2>&1
|
pushd "$tmpdir" > /dev/null 2>&1
|
||||||
log "Cloning into temporary directory: $tmpdir" 2
|
log "Cloning into temporary directory: $tmpdir" 2
|
||||||
|
Loading…
Reference in New Issue
Block a user