mirror of
https://github.com/whyour/qinglong.git
synced 2026-03-29 19:11:02 +08:00
Merge 60f8286825 into 07bf0c705b
This commit is contained in:
commit
1451769c03
|
|
@ -258,8 +258,16 @@ git_clone_scripts() {
|
||||||
|
|
||||||
set_proxy "$proxy"
|
set_proxy "$proxy"
|
||||||
|
|
||||||
|
# Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments
|
||||||
|
local original_tmpdir="${TMPDIR:-}"
|
||||||
|
export TMPDIR=/tmp
|
||||||
git clone -q --depth=1 $part_cmd $url $dir
|
git clone -q --depth=1 $part_cmd $url $dir
|
||||||
exit_status=$?
|
exit_status=$?
|
||||||
|
if [[ -n "$original_tmpdir" ]]; then
|
||||||
|
export TMPDIR="$original_tmpdir"
|
||||||
|
else
|
||||||
|
unset TMPDIR
|
||||||
|
fi
|
||||||
|
|
||||||
unset_proxy
|
unset_proxy
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user