Added exception for helm-path
This commit is contained in:
parent
0c30698f96
commit
785a9d3ba2
@ -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;
|
||||||
|
@ -53,8 +53,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()) {
|
||||||
@ -89,7 +88,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');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user