Skip to content

Commit

Permalink
Don't try to remove old .gopass.yml config
Browse files Browse the repository at this point in the history
  • Loading branch information
kpitt committed Sep 27, 2022
1 parent 4adbe2d commit 5c86dd8
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions internal/action/fsck.go
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package action

import (
"os"
"path/filepath"

"github.com/kpitt/gopass/internal/action/exit"
"github.com/kpitt/gopass/internal/config"
"github.com/kpitt/gopass/internal/out"
"github.com/kpitt/gopass/internal/store/leaf"
"github.com/kpitt/gopass/internal/tree"
"github.com/kpitt/gopass/pkg/ctxutil"
"github.com/kpitt/gopass/pkg/fsutil"
"github.com/kpitt/gopass/pkg/termio"
"github.com/urfave/cli/v2"
)
Expand All @@ -31,14 +26,6 @@ func (s *Action) Fsck(c *cli.Context) error {
return exit.Error(exit.Config, err, "failed to save config: %s", err)
}

// clean up any previous config locations.
oldCfg := filepath.Join(config.Homedir(), ".gopass.yml")
if fsutil.IsFile(oldCfg) {
if err := os.Remove(oldCfg); err != nil {
out.Errorf(ctx, "Failed to remove old gopass config %s: %s", oldCfg, err)
}
}

// display progress bar.
t, err := s.Store.Tree(ctx)
if err != nil {
Expand Down

0 comments on commit 5c86dd8

Please sign in to comment.