zmpkg.pl: correction for "Use of uninitialized value $command in string eq at zmpkg.pl line 62"

This commit is contained in:
Dmitry Smirnov 2015-04-11 22:41:07 +10:00
parent fa97348535
commit afb127125d
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ delete @ENV{qw(IFS CDPATH ENV BASH_ENV)};
logInit();
my $command = $ARGV[0];
my $command = $ARGV[0]||'';
if ( $command eq 'version' ) {
print ZoneMinder::Base::ZM_VERSION . "\n";
exit(0);