Chmod file permission

This commit is contained in:
Imran Ismail
2019-09-05 04:16:18 +08:00
parent c1ba496a1b
commit af8d62879a
3 changed files with 9 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ import * as restm from 'typed-rest-client/RestClient';
import * as os from 'os';
import * as path from 'path';
import * as semver from 'semver';
import * as fs from 'fs';
let osPlat: string = os.platform();
let osArch: string = os.arch();
@@ -169,5 +170,7 @@ async function acquireKustomize(version: string): Promise<string> {
throw `Failed to download version ${version}: ${err}`;
}
fs.chmodSync(downloadPath, 0o755);
return await tc.cacheFile(downloadPath, 'kustomize', 'kustomize', version);
}