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

