重新恢复uengine-installer For Ubuntu

This commit is contained in:
2022-09-10 18:42:42 +08:00
parent 1357a1be41
commit 34c3cd31d1
2 changed files with 13 additions and 10 deletions

View File

@@ -2,14 +2,17 @@
is_tar_checked="0"
rm -rf /tmp/uengine
until [ "$is_tar_checked" = "1" ];do
echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
read tar_path
#echo "请拖入uengine.tar.xz并回车确认,可在 https://cowtransfer.com/s/44656ada129e42 下载获取。"
#read tar_path
mkdir -p /tmp/uengine
aria2c -x 16 -s 16 -d /tmp/uengine -o uenginetar.xz https://code.gitlink.org.cn/gfdgd_xi/uengine-installer/raw/branch/master/uenginetar.xz
tar_path="/tmp/uengine/uenginetar.xz"
tar_path=`echo "$tar_path" | sed $'s/\'//g'`
echo "路径为 $tar_path"
#echo "路径为 $tar_path"
tar_md5sum=`md5sum $tar_path`
tar_md5sum=`echo ${tar_md5sum%%/*}`
if [ "$tar_md5sum" = "b8429c4d8bfd507b9dc4547e0b71c962" ];then
if [ "$tar_md5sum" = "5668b6bb54d28406e527989348126982" ];then
is_tar_checked="1"
else
echo $tar_md5sum