Made sure handled check parameter.
git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@312 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
parent
41d74025a1
commit
8ff68797ac
|
@ -58,7 +58,7 @@ delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
|
|||
|
||||
my $command = $ARGV[0];
|
||||
|
||||
if ( !$command || $command !~ /^(?:start|stop|restart)$/ )
|
||||
if ( !$command || $command !~ /^(?:start|stop|restart|status)$/ )
|
||||
{
|
||||
print( "Usage: zmpkg.pl <start|stop|restart>\n" );
|
||||
exit( -1 );
|
||||
|
|
Loading…
Reference in New Issue