Removed quotes around command when no prefix required.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@1694 e3e1d417-86f3-4887-817a-d78f3d33393f
pull/27/merge
stan 2005-12-19 16:56:18 +00:00
parent 18a23d2707
commit a894479087
1 changed files with 5 additions and 1 deletions

View File

@ -314,7 +314,11 @@ sub removeShm
sub runCommand
{
my $command = shift;
$command = $cmd_prefix."'".ZM_PATH_BIN."/".$command."'";
$command = ZM_PATH_BIN."/".$command;
if ( $cmd_prefix )
{
$command = $cmd_prefix."'".$command."'";
}
Debug( "Command: $command\n" );
my $output = qx($command);
my $status = $? >> 8;