Update start.sh

This commit is contained in:
wnlen
2026-01-15 18:46:41 +08:00
parent 03b9475946
commit e0f8d082f1

View File

@ -297,10 +297,18 @@ if [ "$SKIP_CONFIG_REBUILD" != "true" ]; then
CURL_CMD+=("$URL") CURL_CMD+=("$URL")
set +e set +e
"${CURL_CMD[@]}" CURL_ERR="$Temp_Dir/curl.err"
: > "$CURL_ERR"
"${CURL_CMD[@]}" 2>>"$CURL_ERR"
ReturnStatus=$? ReturnStatus=$?
set -e set -e
echo "[DBG] curl rc=$ReturnStatus"
if [ -s "$CURL_ERR" ]; then
echo "[DBG] curl stderr (last 50 lines):"
tail -n 50 "$CURL_ERR"
fi
if [ "$ReturnStatus" -ne 0 ]; then if [ "$ReturnStatus" -ne 0 ]; then
WGET_CMD=(wget -q -O "$Temp_Dir/clash.yaml") WGET_CMD=(wget -q -O "$Temp_Dir/clash.yaml")
if [ "$ALLOW_INSECURE_TLS" = "true" ]; then if [ "$ALLOW_INSECURE_TLS" = "true" ]; then