mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-06 06:46:56 +00:00
Add node modules and new code for release (#57)
Co-authored-by: taakleton <taakleton@users.noreply.github.com>
This commit is contained in:
parent
da63a48ad7
commit
a517f2ff65
8435 changed files with 1764387 additions and 7 deletions
|
|
@ -114,7 +114,7 @@ exports.downloadHelm = downloadHelm;
|
|||
function findHelm(rootFolder) {
|
||||
fs.chmodSync(rootFolder, '777');
|
||||
var filelist = [];
|
||||
exports.walkSync(rootFolder, filelist, helmToolName + getExecutableExtension());
|
||||
(0, exports.walkSync)(rootFolder, filelist, helmToolName + getExecutableExtension());
|
||||
if (!filelist || filelist.length == 0) {
|
||||
throw new Error(util.format("Helm executable not found in path", rootFolder));
|
||||
}
|
||||
|
|
@ -123,12 +123,12 @@ function findHelm(rootFolder) {
|
|||
}
|
||||
}
|
||||
exports.findHelm = findHelm;
|
||||
exports.walkSync = function (dir, filelist, fileToFind) {
|
||||
var walkSync = function (dir, filelist, fileToFind) {
|
||||
var files = fs.readdirSync(dir);
|
||||
filelist = filelist || [];
|
||||
files.forEach(function (file) {
|
||||
if (fs.statSync(path.join(dir, file)).isDirectory()) {
|
||||
filelist = exports.walkSync(path.join(dir, file), filelist, fileToFind);
|
||||
filelist = (0, exports.walkSync)(path.join(dir, file), filelist, fileToFind);
|
||||
}
|
||||
else {
|
||||
core.debug(file);
|
||||
|
|
@ -139,4 +139,5 @@ exports.walkSync = function (dir, filelist, fileToFind) {
|
|||
});
|
||||
return filelist;
|
||||
};
|
||||
exports.walkSync = walkSync;
|
||||
run().catch(core.setFailed);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue