fix(web): SyncProblemDataHandler::copy_to_prepare()
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2022-11-12 20:25:06 +08:00
parent ff16bfbc84
commit 48e4c56782
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -85,7 +85,6 @@ class SyncProblemDataHandler {
} }
if (isset($this->problem_extra_config['dont_use_formatter']) || !is_file("{$this->upload_dir}/$file_name")) { if (isset($this->problem_extra_config['dont_use_formatter']) || !is_file("{$this->upload_dir}/$file_name")) {
exec("cp $src $dest -r", $output, $ret);
$ret = UOJLocalRun::exec(['cp', $src, $dest, '-r']); $ret = UOJLocalRun::exec(['cp', $src, $dest, '-r']);
} else { } else {
$ret = UOJLocalRun::formatter($src, $dest); $ret = UOJLocalRun::formatter($src, $dest);