Remove mktemp dependency
This commit is contained in:
parent
9c999c7998
commit
e6cfd39bbc
1 changed files with 8 additions and 1 deletions
9
yadm
9
yadm
|
@ -752,7 +752,8 @@ function clone() {
|
|||
}
|
||||
|
||||
local wc
|
||||
wc="$(mktemp -d)" || error_out "Unable to create temporary directory"
|
||||
wc="$(mk_tmp_dir)"
|
||||
[ -d "$wc" ] || error_out "Unable to create temporary directory"
|
||||
|
||||
# first clone without checkout
|
||||
debug "Doing an initial clone of the repository"
|
||||
|
@ -2032,6 +2033,12 @@ function copy_perms {
|
|||
return 0
|
||||
}
|
||||
|
||||
function mk_tmp_dir {
|
||||
local tempdir="$YADM_DATA/tmp.$$.$RANDOM"
|
||||
assert_parent "$tempdir/"
|
||||
echo "$tempdir"
|
||||
}
|
||||
|
||||
# ****** Prerequisites Functions ******
|
||||
|
||||
function require_archive() {
|
||||
|
|
Loading…
Reference in a new issue