mirror of https://gitlab.com/rwkgyg/CFwarp.git
Update CFcdnym.sh
This commit is contained in:
parent
9a7fa7284b
commit
6f6c07e4c7
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue