Skip to content

Commit

Permalink
Merge pull request #2 from cnf-testsuite/bug/1798
Browse files Browse the repository at this point in the history
[bug/1798] Read local helm path from CUSTOM_HELM_PATH env var
  • Loading branch information
agentpoyo authored Aug 23, 2023
2 parents 592b2bc + 2165f45 commit 46b0c7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: helm
version: 1.0.1
version: 1.0.2

authors:
- William Harris <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/utils/binary_reference.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require "./utils.cr"
require "./system_information.cr"

class BinaryReference
@helm: String?
@helm : String?


def global_helm_installed?
Expand Down
1 change: 1 addition & 0 deletions src/utils/utils.cr
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def binary_path
end

def local_helm_full_path
return ENV["CUSTOM_HELM_PATH"] if ENV["CUSTOM_HELM_PATH"]?
"#{FileUtils.pwd}/#{binary_path}"
end

Expand Down

0 comments on commit 46b0c7f

Please sign in to comment.