Skip to content

Commit 542b528

Browse files
committed
🐛 修复 Ubuntu 版本文件不存在中断问题
1 parent 0a43269 commit 542b528

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build/linux/online_install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,9 @@ Get_NewVer() {
213213
214214
sleep 1
215215
#本地版本 Hash
216-
o_sha384=$(cat "AppVer")
216+
if [ -f "AppVer" ]; then
217+
o_sha384=$(cat "AppVer")
218+
fi
217219
if [ -e "AppVer" ]; then
218220
if [ "${o_sha384,,}" = "${n_sha384,,}" ]; then
219221
Show_Run "已是最新版本,是否启动程序?"

0 commit comments

Comments
 (0)