代码拉取完成,页面将自动刷新
From d08e3843904fee9bfb955a928a55a2f08b8f054a Mon Sep 17 00:00:00 2001
From: Qiumiao Zhang <zhangqiumiao1@huawei.com>
Date: Tue, 15 Aug 2023 14:48:50 +0800
Subject: [PATCH] support use %20 escape characters in url
Signed-off-by: Qiumiao Zhang <zhangqiumiao1@huawei.com>
---
usr/Euler/project/install/setupOS.sh | 4 ++--
usr/Euler/project/load/load.sh | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/usr/Euler/project/install/setupOS.sh b/usr/Euler/project/install/setupOS.sh
index f1040c4..f8a6f79 100644
--- a/usr/Euler/project/install/setupOS.sh
+++ b/usr/Euler/project/install/setupOS.sh
@@ -189,7 +189,7 @@ function SetupOS_Decompr()
#sha256sum check
if [ ! -z "$LOCAL_SOURCE_PATH" -a ! -z "$SI_OSTARNAME" -a -f "$LOCAL_SOURCE_PATH/$SI_OSTARNAME.sha256" ]; then
- pushd $LOCAL_SOURCE_PATH >> $OTHER_TTY 2>&1
+ pushd "$LOCAL_SOURCE_PATH" >> $OTHER_TTY 2>&1
sha256sum -c "$SI_OSTARNAME.sha256" >> $OTHER_TTY 2>&1
if [ $? -eq 0 ]; then
g_LOG_Info "sha256sum success."
@@ -211,7 +211,7 @@ function SetupOS_Decompr()
return 1
fi
- tar -xzf $LOCAL_SOURCE_PATH/$SI_OSTARNAME -C $LOCAL_UNCOMPRESS_PATH >> $OTHER_TTY 2>&1
+ tar -xzf "$LOCAL_SOURCE_PATH/$SI_OSTARNAME" -C "$LOCAL_UNCOMPRESS_PATH" >> $OTHER_TTY 2>&1
if [ $? -ne 0 ]; then
g_LOG_Error "uncompressed the $LOCAL_SOURCE_PATH/$SI_OSTARNAME failed."
return 1
diff --git a/usr/Euler/project/load/load.sh b/usr/Euler/project/load/load.sh
index 2f0a5d8..176bb1c 100644
--- a/usr/Euler/project/load/load.sh
+++ b/usr/Euler/project/load/load.sh
@@ -109,7 +109,7 @@ function g_Load_Os
if echo $tran_protocol | grep -q -E "^[fF][tT][pP]$|^[hH][tT][tT][pP]$"; then
if [ "x$FT_SERVER_SOURCE_PATH" != "x" ]; then
- LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/$FT_SERVER_SOURCE_PATH/repo"
+ LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/${FT_SERVER_SOURCE_PATH//%20/ }/repo"
else
LOCAL_SOURCE_PATH="$LOCAL_SOURCE_PATH/repo"
fi
--
2.27.0
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。