Added exception for helm-path
This commit is contained in:
@ -60,7 +60,7 @@ function getStableHelmVersion() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
var walkSync = function (dir, filelist, fileToFind) {
|
var walkSync = function (dir, filelist, fileToFind) {
|
||||||
var fs = fs || require('fs'), files = fs.readdirSync(dir);
|
var files = fs.readdirSync(dir);
|
||||||
filelist = filelist || [];
|
filelist = filelist || [];
|
||||||
files.forEach(function (file) {
|
files.forEach(function (file) {
|
||||||
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
||||||
@ -95,6 +95,7 @@ function downloadHelm(version) {
|
|||||||
}
|
}
|
||||||
const helmpath = findHelm(cachedToolpath);
|
const helmpath = findHelm(cachedToolpath);
|
||||||
if (!helmpath) {
|
if (!helmpath) {
|
||||||
|
throw new Error(util.format("Helm executable not found in path ", cachedToolpath));
|
||||||
}
|
}
|
||||||
fs.chmodSync(helmpath, '777');
|
fs.chmodSync(helmpath, '777');
|
||||||
return helmpath;
|
return helmpath;
|
||||||
|
@ -52,8 +52,7 @@ async function getStableHelmVersion(): Promise<string> {
|
|||||||
|
|
||||||
|
|
||||||
var walkSync = function(dir, filelist, fileToFind) {
|
var walkSync = function(dir, filelist, fileToFind) {
|
||||||
var fs = fs || require('fs'),
|
var files = fs.readdirSync(dir);
|
||||||
files = fs.readdirSync(dir);
|
|
||||||
filelist = filelist || [];
|
filelist = filelist || [];
|
||||||
files.forEach(function(file) {
|
files.forEach(function(file) {
|
||||||
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
||||||
@ -88,7 +87,7 @@ async function downloadHelm(version: string): Promise<string> {
|
|||||||
|
|
||||||
const helmpath = findHelm(cachedToolpath);
|
const helmpath = findHelm(cachedToolpath);
|
||||||
if (!helmpath) {
|
if (!helmpath) {
|
||||||
|
throw new Error(util.format("Helm executable not found in path ", cachedToolpath));
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.chmodSync(helmpath, '777');
|
fs.chmodSync(helmpath, '777');
|
||||||
|
Reference in New Issue
Block a user