1 Star 0 Fork 180

wrsiyu/oepkgs-management

forked from oepkgs/oepkgs-management 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
0999-osbuilder-Adjust-agent_version-for-our-builds.patch 1.05 KB
一键复制 编辑 原始数据 按行查看 历史
James_Zhao 提交于 2023-07-05 09:41 . test
From 3a789e01e42537f98b6f73862819c4ecf20ab0e4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Fabiano=20Fid=C3=AAncio?= <[email protected]>
Date: Mon, 30 Nov 2020 16:04:11 +0100
Subject: [PATCH] osbuilder: Adjust agent_version for our builds
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
As we move things around when installing osbuilder, we need to adapt
where we get the agent_version from.
Signed-off-by: Fabiano Fidêncio <[email protected]>
---
tools/osbuilder/scripts/lib.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/tools/osbuilder/scripts/lib.sh b/tools/osbuilder/scripts/lib.sh
index e7a39d8..f0a41b6 100644
--- a/tools/osbuilder/scripts/lib.sh
+++ b/tools/osbuilder/scripts/lib.sh
@@ -195,8 +195,7 @@ create_summary_file()
if [ "${RUST_AGENT}" == "no" ]; then
agent_version=$("$agent" --version|awk '{print $NF}')
else
- local -r agentdir="${script_dir}/../../../"
- agent_version=$(cat ${agentdir}/VERSION)
+ agent_version=$(cat "${script_dir}/../../VERSION")
fi
--
2.28.0
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wrsiyu/oepkgs-management.git
[email protected]:wrsiyu/oepkgs-management.git
wrsiyu
oepkgs-management
oepkgs-management
master

搜索帮助