x
This commit is contained in:
+6
-12
@@ -1,4 +1,4 @@
|
||||
n="sillyplus"
|
||||
n="sillyGirl"
|
||||
s="/usr/local/$n"
|
||||
a=arm64
|
||||
if [[ $(uname -a | grep "x86_64") != "" ]]; then
|
||||
@@ -9,21 +9,15 @@ if [ ! -d $s ]; then
|
||||
fi ;
|
||||
cd $s;
|
||||
rm -rf $n;
|
||||
v=`curl https://gitlab.com/cdle/$a/-/raw/main/compile_time.go --silent | tr -cd "[0-9]"`
|
||||
d=""
|
||||
v=`curl https://raw.githubusercontent.com/cdle/binary/main/compile_time.go --silent | tr -cd "[0-9]"`
|
||||
if [ ${#v} == 13 ]; then
|
||||
d="https://gitlab.com/cdle/${a}/-/raw/main/sillyplus_linux_${a}_${v}"
|
||||
d="https://raw.githubusercontent.com/cdle/binary/main/sillyGirl_linux_${a}_${v}"
|
||||
else
|
||||
v=`curl https://raw.githubusercontent.com/cdle/binary/main/compile_time.go --silent | tr -cd "[0-9]"`
|
||||
if [ ${#v} == 13 ]; then
|
||||
d="https://raw.githubusercontent.com/cdle/binary/main/sillyplus_linux_${a}_${v}"
|
||||
else
|
||||
echo "Sorry,你网不好!"
|
||||
exit
|
||||
fi
|
||||
echo "Sorry,你网不好,请使用其他方式下载!"
|
||||
exit
|
||||
fi
|
||||
echo "检测到版本 $v"
|
||||
echo "正在从 $d 下载..."
|
||||
curl -o $n $d && chmod 777 $n
|
||||
echo "傻妞已安装到 $s"
|
||||
echo "请手动运行 $s/$n -t"
|
||||
echo "请手动运行 $s/$n 带 -t 进入交互模式"
|
||||
|
||||
Reference in New Issue
Block a user