mirror of
https://github.com/actions/setup-dotnet.git
synced 2026-11-05 10:46:28 +00:00
Make setup script functions synchronous
This commit is contained in:
1 parent
820f30d332
commit
addb470701
2 files changed
+2
-6
No files matched your search
Vendored
-4
@@ -351,7 +351,6 @@ class DotnetInstallScript {
|
||||
this.setupScriptBash();
|
||||
}
|
||||
setupScriptPowershell() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
this.scriptArguments = [
|
||||
'-NoLogo',
|
||||
'-Sta',
|
||||
@@ -369,12 +368,9 @@ class DotnetInstallScript {
|
||||
if (process.env['no_proxy'] != null) {
|
||||
this.scriptArguments.push(`-ProxyBypassList ${process.env['no_proxy']}`);
|
||||
}
|
||||
});
|
||||
}
|
||||
setupScriptBash() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
(0, fs_1.chmodSync)(this.escapedScript, '777');
|
||||
});
|
||||
}
|
||||
getScriptPath() {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
|
||||
+2
-2
@@ -143,7 +143,7 @@ export class DotnetInstallScript {
|
||||
this.setupScriptBash();
|
||||
}
|
||||
|
||||
private async setupScriptPowershell() {
|
||||
private setupScriptPowershell() {
|
||||
this.scriptArguments = [
|
||||
'-NoLogo',
|
||||
'-Sta',
|
||||
@@ -165,7 +165,7 @@ export class DotnetInstallScript {
|
||||
}
|
||||
}
|
||||
|
||||
private async setupScriptBash() {
|
||||
private setupScriptBash() {
|
||||
chmodSync(this.escapedScript, '777');
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user