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

@@ -23,6 +23,7 @@ const restm = __importStar(require("typed-rest-client/RestClient"));
const os = __importStar(require("os"));
const path = __importStar(require("path"));
const semver = __importStar(require("semver"));
const fs = __importStar(require("fs"));
let osPlat = os.platform();
let osArch = os.arch();
if (!tempDirectory) {
@@ -161,6 +162,7 @@ function acquireKustomize(version) {
core.debug(err);
throw `Failed to download version ${version}: ${err}`;
}
fs.chmodSync(downloadPath, 0o755);
return yield tc.cacheFile(downloadPath, 'kustomize', 'kustomize', version);
});
}