mirror of
https://github.com/whyour/qinglong.git
synced 2026-02-12 14:05:38 +08:00
Merge 60f8286825 into d53437d169
This commit is contained in:
commit
6d8dd78694
|
|
@ -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