From 542b528b933b022cc2e6ec36da5af8e5efbafc31 Mon Sep 17 00:00:00 2001 From: Mossimo Date: Tue, 30 Apr 2024 16:28:23 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20=E4=BF=AE=E5=A4=8D=20Ubuntu=20?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E6=96=87=E4=BB=B6=E4=B8=8D=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E4=B8=AD=E6=96=AD=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/linux/online_install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build/linux/online_install.sh b/build/linux/online_install.sh index 44e2e81c6f9..8b9e1e99942 100644 --- a/build/linux/online_install.sh +++ b/build/linux/online_install.sh @@ -213,7 +213,9 @@ Get_NewVer() { sleep 1 #本地版本 Hash - o_sha384=$(cat "AppVer") + if [ -f "AppVer" ]; then + o_sha384=$(cat "AppVer") + fi if [ -e "AppVer" ]; then if [ "${o_sha384,,}" = "${n_sha384,,}" ]; then Show_Run "已是最新版本,是否启动程序?"