mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Fix trying to download kubectl from [object Object] (#4215)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
parent
9f14b4c534
commit
df297613ca
@ -385,10 +385,12 @@ export class Kubectl {
|
|||||||
await fsPromises.writeFile(zshScriptPath, zshScript.toString(), { mode: 0o644 });
|
await fsPromises.writeFile(zshScriptPath, zshScript.toString(), { mode: 0o644 });
|
||||||
}
|
}
|
||||||
|
|
||||||
protected getDownloadMirror() {
|
protected getDownloadMirror(): string {
|
||||||
// MacOS packages are only available from default
|
// MacOS packages are only available from default
|
||||||
|
|
||||||
return packageMirrors.get(UserStore.getInstance().downloadMirror)
|
const mirror = packageMirrors.get(UserStore.getInstance().downloadMirror)
|
||||||
?? packageMirrors.get(defaultPackageMirror);
|
?? packageMirrors.get(defaultPackageMirror);
|
||||||
|
|
||||||
|
return mirror.url;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user