mirror of
https://github.com/wnlen/clash-for-linux.git
synced 2026-02-04 10:11:28 +08:00
Update start.sh
This commit is contained in:
10
start.sh
10
start.sh
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user