diff --git a/app/Command/Update.php b/app/Command/Update.php index d1012826..baa91344 100644 --- a/app/Command/Update.php +++ b/app/Command/Update.php @@ -124,7 +124,7 @@ class Update system('php '.BASE_PATH.'/composer.phar selfupdate'); system('php '.BASE_PATH.'/composer.phar install -d '.BASE_PATH); echo('升级composer依赖结束,请自行根据上方输出确认是否升级成功'.PHP_EOL); - system('rm -rf '.BASE_PATH.'/storage/framework/smarty/compile/'); + system('rm -rf '.BASE_PATH.'/storage/framework/smarty/compile/*'); system('chown -R www:www '.BASE_PATH.'/storage'); }