更新脚本使用说明,移除 wget 命令示例以简化使用流程

This commit is contained in:
mini2024
2025-03-22 17:19:00 +08:00
parent af95b5f930
commit 02b6d71215
3 changed files with 4 additions and 3 deletions

3
1.sh
View File

@ -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 # 遇到错误即退出 set -e # 遇到错误即退出
trap 'echo "Error on line $LINENO"' ERR trap 'echo "Error on line $LINENO"' ERR

View File

@ -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 <<EOF > /etc/apk/repositories cat <<EOF > /etc/apk/repositories
http://dl-cdn.alpinelinux.org/alpine/latest-stable/main http://dl-cdn.alpinelinux.org/alpine/latest-stable/main

View File

@ -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 if [ -f /etc/debian_version ]; then
SYSTEM_TYPE="debian" SYSTEM_TYPE="debian"