mirror of
https://github.com/Azure/setup-helm.git
synced 2025-07-16 02:30:36 +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:
committed by
GitHub
parent
da63a48ad7
commit
a517f2ff65
@ -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);
|
||||
|
Reference in New Issue
Block a user