Added exception for helm-path

This commit is contained in:
Anumita Shenoy
2019-10-15 13:33:32 +05:30
parent 0c30698f96
commit 785a9d3ba2
2 changed files with 4 additions and 4 deletions

View File

@ -53,8 +53,7 @@ async function getStableHelmVersion(): Promise<string> {
var walkSync = function(dir, filelist, fileToFind) {
var fs = fs || require('fs'),
files = fs.readdirSync(dir);
var files = fs.readdirSync(dir);
filelist = filelist || [];
files.forEach(function(file) {
if (fs.statSync(path.join(dir, file)).isDirectory()) {
@ -89,7 +88,7 @@ async function downloadHelm(version: string): Promise<string> {
const helmpath = findHelm(cachedToolpath);
if (!helmpath) {
throw new Error(util.format("Helm executable not found in path ", cachedToolpath));
}
fs.chmodSync(helmpath, '777');