We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfdefcf commit 80c451cCopy full SHA for 80c451c
cmd/sbctl/setup.go
@@ -190,8 +190,10 @@ func MigrateSetup(state *config.State) error {
190
if err := state.Fs.Rename(path.Join(p, "files.db"), newConf.FilesDb); err != nil {
191
return err
192
}
193
- if err := state.Fs.Rename(path.Join(p, "bundles.db"), newConf.FilesDb); err != nil {
194
- return err
+ if ok, _ := afero.Exists(state.Fs, path.Join(p, "bundles.db")); ok {
+ if err := state.Fs.Rename(path.Join(p, "bundles.db"), newConf.BundlesDb); err != nil {
195
+ return err
196
+ }
197
198
logging.Ok("")
199
0 commit comments