123 Star 1 Fork 36

src-openEuler/obs-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
obs_project_update-should-tell-the-usage-but-not-hung-still.patch 795 Bytes
一键复制 编辑 原始数据 按行查看 历史
caodongxia 提交于 2021-08-21 17:33 . fix obsscheduler and obsworker
From 29a123a92e31dbdc137e94428323c75d7a0c215b Mon Sep 17 00:00:00 2001
From: si-gui <sunguoshuai@huawei.com>
Date: Thu, 17 Jun 2021 16:34:05 +0800
Subject: [PATCH] obs_project_update should tell the usage but not hung still
---
dist/obs_project_update | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dist/obs_project_update b/dist/obs_project_update
index 07c8233..1da43ce 100755
--- a/dist/obs_project_update
+++ b/dist/obs_project_update
@@ -17,6 +17,10 @@
# $ echo "kiwi deb" | obs_project_update -u https://api.opensuse.org OBS:Server:2.4 https://api.yourdomain.ext OBS:Server:2.4
#
usage="usage: $0 {-e | -u} <source obs> <source project> <target obs> <target project> [listfile]"
+if [ $# -lt 5 ];then
+ echo $usage
+ exit 1
+fi
srcexpand='-e'
dstexpand='-u'
--
2.30.0
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/src-openeuler/obs-server.git
git@gitee.com:src-openeuler/obs-server.git
src-openeuler
obs-server
obs-server
master

搜索帮助