mirror of
https://github.com/actions/setup-dotnet.git
synced 2025-08-23 00:50:19 +00:00
Fix bug with empty line argument
This commit is contained in:
parent
1f801142cd
commit
7c495956c6
3
dist/index.js
vendored
3
dist/index.js
vendored
@ -280,7 +280,7 @@ class DotnetCoreInstaller {
|
|||||||
let command = `& '${escapedScript}'`;
|
let command = `& '${escapedScript}'`;
|
||||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||||
if (this.quality) {
|
if (this.quality) {
|
||||||
command += `${this.resolveQuality(versionObject).type} ${this.resolveQuality(versionObject).value}`;
|
command += ` ${this.resolveQuality(versionObject).type} ${this.resolveQuality(versionObject).value}`;
|
||||||
}
|
}
|
||||||
if (process.env['https_proxy'] != null) {
|
if (process.env['https_proxy'] != null) {
|
||||||
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
command += ` -ProxyAddress ${process.env['https_proxy']}`;
|
||||||
@ -350,6 +350,7 @@ class DotnetCoreInstaller {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.warning("Input 'dotnet-quality' can't be used with the specified exact version of .NET. 'dotnet-quality' input will be ignored.");
|
core.warning("Input 'dotnet-quality' can't be used with the specified exact version of .NET. 'dotnet-quality' input will be ignored.");
|
||||||
|
this.quality = "";
|
||||||
}
|
}
|
||||||
return resolvedArgument;
|
return resolvedArgument;
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@ export class DotnetCoreInstaller {
|
|||||||
command += ` ${versionObject.type} ${versionObject.value}`;
|
command += ` ${versionObject.type} ${versionObject.value}`;
|
||||||
|
|
||||||
if (this.quality) {
|
if (this.quality) {
|
||||||
command += `${this.resolveQuality(versionObject).type} ${
|
command += ` ${this.resolveQuality(versionObject).type} ${
|
||||||
this.resolveQuality(versionObject).value
|
this.resolveQuality(versionObject).value
|
||||||
}`;
|
}`;
|
||||||
}
|
}
|
||||||
@ -209,6 +209,7 @@ export class DotnetCoreInstaller {
|
|||||||
core.warning(
|
core.warning(
|
||||||
"Input 'dotnet-quality' can't be used with the specified exact version of .NET. 'dotnet-quality' input will be ignored."
|
"Input 'dotnet-quality' can't be used with the specified exact version of .NET. 'dotnet-quality' input will be ignored."
|
||||||
);
|
);
|
||||||
|
this.quality = "";
|
||||||
}
|
}
|
||||||
return resolvedArgument;
|
return resolvedArgument;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user