mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Add kubectl/helm download mirror select to preferences (#185)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
1 parent
f0dd4095ac
commit
5c2e64b487
7 files changed
+73
-81
No files matched your search
@@ -95,7 +95,7 @@ export class LensBinary {
|
||||
return exists
|
||||
}
|
||||
|
||||
protected async ensureBinary() {
|
||||
public async ensureBinary() {
|
||||
const isValid = await this.checkBinary()
|
||||
if(!isValid) {
|
||||
await this.downloadBinary().catch((error) => { logger.error(error) });
|
||||
@@ -129,7 +129,7 @@ export class LensBinary {
|
||||
})
|
||||
}
|
||||
|
||||
public async downloadBinary() {
|
||||
protected async downloadBinary() {
|
||||
const binaryPath = this.tarPath || this.getBinaryPath()
|
||||
await ensureDir(this.getBinaryDir(), 0o755)
|
||||
|
||||
|
||||
Reference in new issue
Block a user