mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 04:44:53 +08:00
Add exception for checking patch file exist
This commit is contained in:
parent
3965a899c7
commit
d00a5223d3
@ -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://')) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user