Skip to content

Commit

Permalink
feat: do not check for context existence if a custom context file is …
Browse files Browse the repository at this point in the history
…set (#1751)
  • Loading branch information
lburgazzoli authored Sep 27, 2022
1 parent 8338118 commit b880aba
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions pkg/core/servicecontext/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,6 @@ func (c *File) Remove() error {
func (c *File) Location() (path string, err error) {

if rhoasContext := os.Getenv(ContextEnvName); rhoasContext != "" {

_, err := os.Stat(rhoasContext)
if os.IsNotExist(err) {
return "", fmt.Errorf("Custom file path '%s' provided doesn't exist", rhoasContext)
}

path = rhoasContext
} else {
rhoasCtxDir, err := DefaultDir()
Expand Down

0 comments on commit b880aba

Please sign in to comment.