ispman/debian/maintainer ispman,1.1,1.2

Joerg Delker <[email protected]> Thu, 07 Jun 2007 14:10:28 +0000
Newsgroups gmane.comp.isp.ispman.cvs
Message-ID <[email protected]>
Update of /cvsroot/ispman/ispman/debian/maintainer
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv26716/debian/maintainer

Modified Files:
	ispman 
Log Message:
fixed parameter parsing


Index: ispman
===================================================================
RCS file: /cvsroot/ispman/ispman/debian/maintainer/ispman,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- ispman	9 Feb 2007 09:17:51 -0000	1.1
+++ ispman	7 Jun 2007 14:10:26 -0000	1.2
@@ -1,16 +1,19 @@
 #!/bin/sh
 
-if [ "$1" = "help" ] && [ -n "$2" ]; then
-        perldoc /usr/share/ispman/bin/ispman.$2
+cmd=$1
+shift
+
+if [ "$cmd" = "help" ] && [ -n "$1" ]; then
+        perldoc /usr/share/ispman/bin/ispman.$1
         exit 0
 fi
 
-if [ -z "$@" ] || [ "help" = "$1" ]; then
+if [ -z "$cmd" ] || [ "$cmd" = "help" ]; then
 	echo usage: ispman command [options]
         echo The following commands exist:
         ls -1 /usr/share/ispman/bin/ | egrep -o "[^\.]*$"
         exit 0
 fi
 
-/usr/share/ispman/bin/ispman.$@
+/usr/share/ispman/bin/ispman.$cmd $@
 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/