[X2Go-Commits] [buildscripts] 01/03: bin/createsusetagsrepo: also print the usage message when the other parameters are not provided.

git-admin at x2go.org git-admin at x2go.org
Sun Oct 30 02:14:27 CET 2016


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository buildscripts.

commit 11d053c589d143e9dcc3ef89392747bc379ed1dc
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Sun Oct 30 02:12:54 2016 +0100

    bin/createsusetagsrepo: also print the usage message when the other parameters are not provided.
---
 bin/createsusetagsrepo |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/bin/createsusetagsrepo b/bin/createsusetagsrepo
index 281008d..f5c1250 100755
--- a/bin/createsusetagsrepo
+++ b/bin/createsusetagsrepo
@@ -79,10 +79,9 @@ set -e
 
 repo_top_dir="${1}"
 
-distro="${2:?"No distribution string provided."}"
-component="${2:?"No component string provided."}"
-
-test -n "${repo_top_dir}" || usage
+test -z "${repo_top_dir}" && usage
+test -z "${distro}" && usage
+test -z "${component}" && usage
 
 cd "${repo_top_dir}" || error "Unable to switch to provided repository top directory '${repo_top_dir}'."
 

--
Alioth's /srv/git/code.x2go.org/buildscripts.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/buildscripts.git


More information about the x2go-commits mailing list