From 7deab5d18e8946562df14067c5a1f136aac5a40d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 3 Jan 2026 06:55:05 +0000 Subject: [PATCH] Fix subscription git clone failure by setting TMPDIR Set TMPDIR=/tmp before git clone operations to fix "unable to get random bytes for temporary file" error in Docker environments with restricted system calls (e.g., Synology NAS). Co-authored-by: whyour <22700758+whyour@users.noreply.github.com> --- shell/share.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/share.sh b/shell/share.sh index cad30659..88cc8abd 100755 --- a/shell/share.sh +++ b/shell/share.sh @@ -258,8 +258,11 @@ git_clone_scripts() { set_proxy "$proxy" + # Set TMPDIR to /tmp to avoid "unable to get random bytes" error in some Docker environments + export TMPDIR=/tmp git clone -q --depth=1 $part_cmd $url $dir exit_status=$? + unset TMPDIR unset_proxy }