From 0c11e06081ca016127dc62a28e7d82a9b52be0f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=AC=E5=93=A5=E4=BE=83=E4=BE=83=E4=BE=83ygkkk?= Date: Thu, 18 Jan 2024 06:33:29 +0000 Subject: [PATCH] Update CFcdnym.sh --- point/CFcdnym.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/point/CFcdnym.sh b/point/CFcdnym.sh index d6d7baf..5e8db5d 100644 --- a/point/CFcdnym.sh +++ b/point/CFcdnym.sh @@ -2,11 +2,14 @@ export LANG=en_US.UTF-8 if [ ! -f yg_update ]; then echo "请稍等……" +if grep -qi "alpine" /etc/os-release; then +apk add openssh curl wget lzip +else pkg install curl pkg install wget pkg install lzip pkg update -apk add openssh curl wget lzip +fi if [ -x "$(command -v apt-get)" ]; then apt update -y >/dev/null 2>&1 apt install lzip unzip qrencode -y >/dev/null 2>&1 @@ -18,7 +21,6 @@ elif [ -x "$(command -v dnf)" ]; then dnf update -y >/dev/null 2>&1 dnf install lzip unzip qrencode -y >/dev/null 2>&1 fi - touch yg_update fi script_name=$(basename "$BASH_SOURCE")