From 02b6d712159792754908039e8a67b96364cc5424 Mon Sep 17 00:00:00 2001 From: mini2024 Date: Sat, 22 Mar 2025 17:19:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=84=9A=E6=9C=AC=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=E8=AF=B4=E6=98=8E=EF=BC=8C=E7=A7=BB=E9=99=A4=20wget?= =?UTF-8?q?=20=E5=91=BD=E4=BB=A4=E7=A4=BA=E4=BE=8B=E4=BB=A5=E7=AE=80?= =?UTF-8?q?=E5=8C=96=E4=BD=BF=E7=94=A8=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 1.sh | 3 ++- alpine/upgrade.sh | 2 +- upgrade.sh | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/1.sh b/1.sh index 1396016..09b37f9 100644 --- a/1.sh +++ b/1.sh @@ -3,7 +3,8 @@ # ... # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/1.sh"; curl -fsSL "$URL" | bash || wget -q -O - "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/1.sh"; curl -fsSL "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/1.sh"; wget -q -O - "$URL" | bash set -e # 遇到错误即退出 trap 'echo "Error on line $LINENO"' ERR diff --git a/alpine/upgrade.sh b/alpine/upgrade.sh index 59aecb0..8ac6a18 100644 --- a/alpine/upgrade.sh +++ b/alpine/upgrade.sh @@ -4,7 +4,7 @@ # 功能:更新软件包、清理缓存、检查服务状态 # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/alpine/upgrade.sh"; curl -fsSL "$URL" | bash || wget -q -O - "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/alpine/upgrade.sh"; curl -fsSL "$URL" | bash cat < /etc/apk/repositories http://dl-cdn.alpinelinux.org/alpine/latest-stable/main diff --git a/upgrade.sh b/upgrade.sh index 89a3653..bdddf77 100644 --- a/upgrade.sh +++ b/upgrade.sh @@ -3,7 +3,7 @@ # ... # # 使用方法: -# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/upgrade.sh"; curl -fsSL "$URL" | bash || wget -q -O - "$URL" | bash +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/upgrade.sh"; curl -fsSL "$URL" | bash if [ -f /etc/debian_version ]; then SYSTEM_TYPE="debian"