Update CFcdnym.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2024-01-18 09:10:31 +00:00
parent 9a7fa7284b
commit 6f6c07e4c7
1 changed files with 5 additions and 5 deletions

View File

@ -2,13 +2,13 @@
export LANG=en_US.UTF-8 export LANG=en_US.UTF-8
if [ ! -f yg_update ]; then if [ ! -f yg_update ]; then
echo "请稍等……" 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 apk add openssh curl wget lzip
else else
pkg install curl pkg install curl 2>/dev/null
pkg install wget pkg install wget 2>/dev/null
pkg install lzip pkg install lzip 2>/dev/null
pkg update pkg update 2>/dev/null
fi fi
touch yg_update touch yg_update
fi fi