1
0
Fork 0
mirror of synced 2024-09-28 23:41:23 +12:00

review: addressing

This commit is contained in:
Binyamin Yawitz 2024-08-12 16:33:00 -04:00
parent 5bf9794cb2
commit aa27a37064
No known key found for this signature in database

View file

@ -244,10 +244,10 @@ class Builds extends Action
$rootDirectoryWithoutSpaces = str_replace(' ', '', $rootDirectory);
$from = $tmpDirectory . '/' . $rootDirectory;
$to = $tmpDirectory . '/' . $rootDirectoryWithoutSpaces;
$exit = Console::execute('mv "' . $from . '" "' . $to . '"', '', $stdout, $stderr);
$exit = Console::execute('mv "' . \escapeshellcmd($from) . '" "' . \escapeshellcmd($to) . '"', '', $stdout, $stderr);
if ($exit !== 0) {
throw new \Exception('Unable to remove function spaces' . $stderr);
throw new \Exception('Unable to move function with spaces' . $stderr);
}
$rootDirectory = $rootDirectoryWithoutSpaces;
}