fix: chmod with 775 after install (closes #4)

This commit is contained in:
Aarnav Tale
2023-02-15 13:35:19 -05:00
parent 43525325f3
commit b413e7e15e

View File

@@ -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)
} }