加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0005-support-use-20-escape-characters-in-url.patch 2.04 KB
一键复制 编辑 原始数据 按行查看 历史
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
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化