mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-03 06:45:39 +08:00
fix copyDir for FreeBSD and add debug message
This commit is contained in:
@@ -132,6 +132,7 @@ class FileSystem
|
||||
break;
|
||||
case 'Linux':
|
||||
case 'Darwin':
|
||||
case 'BSD':
|
||||
f_passthru('cp -r "' . $src_path . '" "' . $dst_path . '"');
|
||||
break;
|
||||
}
|
||||
@@ -154,7 +155,7 @@ class FileSystem
|
||||
if ($move_path !== null) {
|
||||
$move_path = SOURCE_PATH . '/' . $move_path;
|
||||
}
|
||||
logger()->info("extracting {$name} source");
|
||||
logger()->info("extracting {$name} source to " . ($move_path ?? SOURCE_PATH . "/{$name}") . ' ...');
|
||||
try {
|
||||
$target = $move_path ?? (SOURCE_PATH . "/{$name}");
|
||||
// Git source, just move
|
||||
|
||||
Reference in New Issue
Block a user