mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-07 00:35:41 +08:00
Add exception for checking patch file exist
This commit is contained in:
@@ -177,6 +177,9 @@ class SourcePatcher
|
|||||||
}
|
}
|
||||||
|
|
||||||
$patch_str = FileSystem::convertPath($patch_file);
|
$patch_str = FileSystem::convertPath($patch_file);
|
||||||
|
if (!file_exists($patch_str)) {
|
||||||
|
throw new RuntimeException("Patch file [{$patch_str}] does not exist");
|
||||||
|
}
|
||||||
|
|
||||||
// Copy patch from phar
|
// Copy patch from phar
|
||||||
if (str_starts_with($patch_str, 'phar://')) {
|
if (str_starts_with($patch_str, 'phar://')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user