Update CFcdnym.sh

This commit is contained in:
甬哥侃侃侃ygkkk 2024-01-18 06:33:29 +00:00
parent 098ef9441a
commit 0c11e06081
1 changed files with 4 additions and 2 deletions

View File

@ -2,11 +2,14 @@
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
apk add openssh curl wget lzip
else
pkg install curl pkg install curl
pkg install wget pkg install wget
pkg install lzip pkg install lzip
pkg update pkg update
apk add openssh curl wget lzip fi
if [ -x "$(command -v apt-get)" ]; then if [ -x "$(command -v apt-get)" ]; then
apt update -y >/dev/null 2>&1 apt update -y >/dev/null 2>&1
apt install lzip unzip qrencode -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 update -y >/dev/null 2>&1
dnf install lzip unzip qrencode -y >/dev/null 2>&1 dnf install lzip unzip qrencode -y >/dev/null 2>&1
fi fi
touch yg_update touch yg_update
fi fi
script_name=$(basename "$BASH_SOURCE") script_name=$(basename "$BASH_SOURCE")