Signed-off-by: Xuanwo <github@xuanwo.io>
This commit is contained in:
Xuanwo
2023-01-09 23:50:00 +08:00
parent a2811a1f48
commit a4210c39b2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ function getFilename(version) {
return `sccache-${version}-${getArch()}-${getPlatform()}.${getExtension()}`; return `sccache-${version}-${getArch()}-${getPlatform()}.${getExtension()}`;
} }
function getDirname(version) { function getDirname(version) {
return `sccache-${version}-${getArch()}-${getPlatform()}}`; return `sccache-${version}-${getArch()}-${getPlatform()}`;
} }
function getArch() { function getArch() {
switch (process.arch) { switch (process.arch) {
+1 -1
View File
@@ -51,7 +51,7 @@ function getFilename(version: string): Error | string {
} }
function getDirname(version: string): Error | string { function getDirname(version: string): Error | string {
return `sccache-${version}-${getArch()}-${getPlatform()}}`; return `sccache-${version}-${getArch()}-${getPlatform()}`;
} }
function getArch(): Error | string { function getArch(): Error | string {