mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-19 05:14:52 +08:00
fix --from-zip not working bug
This commit is contained in:
parent
f9e7af1c9a
commit
12ea3218e8
@ -188,7 +188,8 @@ class DownloadCommand extends BaseCommand
|
|||||||
// create downloads
|
// create downloads
|
||||||
try {
|
try {
|
||||||
if (PHP_OS_FAMILY !== 'Windows') {
|
if (PHP_OS_FAMILY !== 'Windows') {
|
||||||
f_passthru('mkdir ' . DOWNLOAD_PATH . ' && cd ' . DOWNLOAD_PATH . ' && unzip ' . escapeshellarg($path));
|
$abs_path = realpath($path);
|
||||||
|
f_passthru('mkdir ' . DOWNLOAD_PATH . ' && cd ' . DOWNLOAD_PATH . ' && unzip ' . escapeshellarg($abs_path));
|
||||||
}
|
}
|
||||||
// Windows TODO
|
// Windows TODO
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user