mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-10-15 07:51:32 +07:00
Only check castor version if castor.php is present
This commit is contained in:
@ -239,6 +239,9 @@ export async function addCastor(data: RS): Promise<string> {
|
||||
data['tool'] = 'castor.' + data['os'].replace('win32', 'windows') + '-amd64';
|
||||
data['url'] = await getUrl(data);
|
||||
data['tool'] = 'castor';
|
||||
data['version_parameter'] = fs.existsSync('castor.php')
|
||||
? data['version_parameter']
|
||||
: '';
|
||||
return await addArchive(data);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user