代码拉取完成,页面将自动刷新
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。