fix: chmod with 775 after install (closes #4)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
import { createHash, randomUUID } from 'node:crypto'
|
import { createHash, randomUUID } from 'node:crypto'
|
||||||
import { mkdir, writeFile } from 'node:fs/promises'
|
import { chmod, mkdir, writeFile } from 'node:fs/promises'
|
||||||
import { join } from 'node:path'
|
import { join } from 'node:path'
|
||||||
import { env, stdout } from 'node:process'
|
import { env, stdout } from 'node:process'
|
||||||
import { clearLine, cursorTo } from 'node:readline'
|
import { clearLine, cursorTo } from 'node:readline'
|
||||||
@@ -41,6 +41,7 @@ export async function installKubectl() {
|
|||||||
|
|
||||||
console.log(`Installing kubectl to ${path}`)
|
console.log(`Installing kubectl to ${path}`)
|
||||||
await writeFile(join(path, 'kubectl'), kubectl)
|
await writeFile(join(path, 'kubectl'), kubectl)
|
||||||
|
await chmod(join(path, 'kubectl'), '755')
|
||||||
addPath(path)
|
addPath(path)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user