mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-18 06:35:09 +00:00
Fix issue with quotes
This commit is contained in:
parent
72e061af64
commit
f64af7ff2c
2
dist/index.js
vendored
2
dist/index.js
vendored
@ -365,7 +365,7 @@ class DotnetCoreInstaller {
|
||||
}
|
||||
outputDotnetVersion(version, installationPath) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
let versionsOnRunner = yield promises_1.readdir(path_1.default.join(installationPath, 'sdk'));
|
||||
let versionsOnRunner = yield promises_1.readdir(path_1.default.join(installationPath.replace(/'/g, ''), 'sdk'));
|
||||
let installedVersion = semver_1.default.maxSatisfying(versionsOnRunner, version);
|
||||
return installedVersion;
|
||||
});
|
||||
|
@ -263,7 +263,7 @@ export class DotnetCoreInstaller {
|
||||
installationPath
|
||||
): Promise<string> {
|
||||
let versionsOnRunner: string[] = await readdir(
|
||||
path.join(installationPath, 'sdk')
|
||||
path.join(installationPath.replace(/'/g, ''), 'sdk')
|
||||
);
|
||||
|
||||
let installedVersion = semver.maxSatisfying(versionsOnRunner, version)!;
|
||||
|
Loading…
x
Reference in New Issue
Block a user