mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-07-25 08:09:08 +07:00
Only check castor version if castor.php is present
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -841,6 +841,9 @@ async function addCastor(data) {
|
||||
data['tool'] = 'castor.' + data['os'].replace('win32', 'windows') + '-amd64';
|
||||
data['url'] = await getUrl(data);
|
||||
data['tool'] = 'castor';
|
||||
data['version_parameter'] = fs_1.default.existsSync('castor.php')
|
||||
? data['version_parameter']
|
||||
: '';
|
||||
return await addArchive(data);
|
||||
}
|
||||
exports.addCastor = addCastor;
|
||||
|
Reference in New Issue
Block a user