diff --git a/upgrade.sh b/upgrade.sh new file mode 100644 index 0000000..89a3653 --- /dev/null +++ b/upgrade.sh @@ -0,0 +1,17 @@ +#!/usr/bin/env bash +# +# ... +# +# 使用方法: +# URL="https://git.1-h.cc/Scripts/Linux/raw/branch/main/upgrade.sh"; curl -fsSL "$URL" | bash || wget -q -O - "$URL" | bash + +if [ -f /etc/debian_version ]; then + SYSTEM_TYPE="debian" + source <(curl -fsSL git.1-h.cc/Scripts/Linux/raw/branch/main/debian/upgrade.sh) +elif [ -f /etc/alpine-release ]; then + SYSTEM_TYPE="alpine" + source <(curl -fsSL git.1-h.cc/Scripts/Linux/raw/branch/main/alpine/upgrade.sh) +else + echo "不支持的系统类型" + exit 1 +fi \ No newline at end of file