mirror of
https://github.com/imranismail/setup-kustomize.git
synced 2026-06-29 17:01:09 +00:00
Set proper file permissions once downloaded
This commit is contained in:
@@ -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();
|
||||
@@ -194,5 +195,12 @@ async function acquireKustomize(version: string): Promise<string> {
|
||||
toolPath = path.join(toolPath, toolFilename)
|
||||
}
|
||||
|
||||
switch (osPlat) {
|
||||
case 'linux':
|
||||
case 'darwin':
|
||||
fs.chmodSync(toolPath, 0o755)
|
||||
break;
|
||||
}
|
||||
|
||||
return await tc.cacheFile(toolPath, toolFilename, toolName, version);
|
||||
}
|
||||
Reference in New Issue
Block a user