Skip to content

Commit

Permalink
fixup: don't error if not exist given fresh install
Browse files Browse the repository at this point in the history
  • Loading branch information
dpastoor committed May 29, 2022
1 parent b86c2f9 commit 5b57a0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/install.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package cmd

import (
"errors"
"fmt"
"os"
"runtime"
"sync"

Expand All @@ -21,7 +23,7 @@ type installOpts struct {

func newInstall(installOpts installOpts, release string) error {
iv, err := config.GetInstalledVersions()
if err != nil {
if err != nil && !errors.Is(err, os.ErrNotExist) {
return err
}
_, ok := iv[release]
Expand Down

0 comments on commit 5b57a0d

Please sign in to comment.