mirror of
https://github.com/Azure/setup-helm.git
synced 2026-04-05 22:36:55 +00:00
Changed the documentation to specify v before 'version' and code changes to append 'v' if it not provided in version (#11)
* Chnaged the documentation to sepcify v before 'version' * append v to version incase it does not already include * review comments fix
This commit is contained in:
parent
38fc288351
commit
98b8d3aa39
3 changed files with 6 additions and 1 deletions
|
|
@ -130,6 +130,9 @@ function run() {
|
|||
if (version.toLocaleLowerCase() === 'latest') {
|
||||
version = yield getStableHelmVersion();
|
||||
}
|
||||
else if (!version.toLocaleLowerCase().startsWith('v')) {
|
||||
version = 'v' + version;
|
||||
}
|
||||
let cachedPath = yield downloadHelm(version);
|
||||
try {
|
||||
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue