mirror of
https://github.com/whyour/qinglong.git
synced 2026-08-05 16:25:04 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8d5e485cd6 | |||
| b87fe2ebf0 | |||
| 7ea2d362f0 | |||
| 9bd8318371 | |||
| 4c2a8e2b24 |
@@ -258,16 +258,8 @@ git_clone_scripts() {
|
||||
|
||||
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
|
||||
exit_status=$?
|
||||
if [[ -n "$original_tmpdir" ]]; then
|
||||
export TMPDIR="$original_tmpdir"
|
||||
else
|
||||
unset TMPDIR
|
||||
fi
|
||||
|
||||
unset_proxy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user