fix testing MySQLBinDir (#770)

This commit is contained in:
Fabrice VINCENT
2025-11-13 16:37:50 +01:00
committed by GitHub
parent 283de1ef7c
commit 066b27c982

View File

@@ -595,13 +595,13 @@ EOF;
$sMySQLCommand = $sCmd;
} else {
$sMySQLBinDir = escapeshellcmd($sMySQLBinDir);
$sMySQLCommand = '"'.$sMySQLBinDir.'/$sCmd"';
$sMySQLCommand = $sMySQLBinDir.'/'.$sCmd;
if (!file_exists($sMySQLCommand)) {
throw new BackupException("$sCmd not found in $sMySQLBinDir");
}
}
return $sMySQLCommand;
return '"'.$sMySQLCommand.'"';
}
}