Add missing ' in command
This commit is contained in:
parent
cb86224613
commit
84db3437bd
@ -173,7 +173,7 @@ if ($compression == 'zip') {
|
|||||||
|
|
||||||
// We also exclude '/temp/' dir and 'documents/admin/documents'
|
// We also exclude '/temp/' dir and 'documents/admin/documents'
|
||||||
// We make escapement here and call executeCLI without escapement because we don't want to have the '*.log' escaped.
|
// We make escapement here and call executeCLI without escapement because we don't want to have the '*.log' escaped.
|
||||||
$cmd = "tar -cf ".escapeshellcmd($outputdir."/".$file)." --exclude-vcs --exclude-caches-all --exclude='temp' --exclude='*.log' --exclude='*.pdf_preview-*.png' --exclude='documents/admin/documents' -C '".escapeshellcmd(dol_sanitizePathName($dirtoswitch))."' '".escapeshellcmd(dol_sanitizeFileName($dirtocompress))."'";
|
$cmd = "tar -cf '".escapeshellcmd($outputdir."/".$file)."' --exclude-vcs --exclude-caches-all --exclude='temp' --exclude='*.log' --exclude='*.pdf_preview-*.png' --exclude='documents/admin/documents' -C '".escapeshellcmd(dol_sanitizePathName($dirtoswitch))."' '".escapeshellcmd(dol_sanitizeFileName($dirtocompress))."'";
|
||||||
|
|
||||||
$result = $utils->executeCLI($cmd, $outputfile, 0, null, 1);
|
$result = $utils->executeCLI($cmd, $outputfile, 0, null, 1);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user