[getdp] 27/60: Fails if not input argument

Matteo F. Vescovi mfv at moszumanska.debian.org
Thu Feb 11 10:12:35 UTC 2016


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

mfv pushed a commit to branch master
in repository getdp.

commit ba92e62d57272afd87e145dc7cf019617db54c87
Author: Sylvestre Ledru <sylvestre at debian.org>
Date:   Sun Jun 17 10:19:30 2012 +0000

    Fails if not input argument
---
 debian/getdp-get-orig-source-svn.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/debian/getdp-get-orig-source-svn.sh b/debian/getdp-get-orig-source-svn.sh
index dca29b3..e68412c 100755
--- a/debian/getdp-get-orig-source-svn.sh
+++ b/debian/getdp-get-orig-source-svn.sh
@@ -2,6 +2,11 @@
 
 export GMSH_VERSION=$1
 
+if test "$GMSH_VERSION" == ""; then
+	echo "please provide the version"
+	exit 42
+fi
+
 mkdir -p tmp
 (cd tmp && svn co --username getdp --password getdp https://geuz.org/svn/getdp/trunk getdp)
 pwd

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/getdp.git



More information about the debian-science-commits mailing list