From 6f6c07e4c7d2161cc46774f36a3e0e9b2cf62b49 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 09:10:31 +0000 Subject: [PATCH] Update CFcdnym.sh --- point/CFcdnym.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/point/CFcdnym.sh b/point/CFcdnym.sh index f2696e9..30b6b09 100644 --- a/point/CFcdnym.sh +++ b/point/CFcdnym.sh @@ -2,13 +2,13 @@ export LANG=en_US.UTF-8 if [ ! -f yg_update ]; then echo "请稍等……" -if grep -qi "alpine" /etc/os-release; then +if [ -e "/etc/os-release" ] && 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 +pkg install curl 2>/dev/null +pkg install wget 2>/dev/null +pkg install lzip 2>/dev/null +pkg update 2>/dev/null fi touch yg_update fi