diff options
Diffstat (limited to 'cmd/ponzu/options.go')
-rw-r--r-- | cmd/ponzu/options.go | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/cmd/ponzu/options.go b/cmd/ponzu/options.go index d71d362..43f6e05 100644 --- a/cmd/ponzu/options.go +++ b/cmd/ponzu/options.go @@ -435,22 +435,6 @@ func upgradePonzuProjectDir(path string) error { } } - err = os.Chdir(temp) - if err != nil { - fmt.Println("Coudln't change directory to:", temp) - } - - // re-create the project dir - err = os.MkdirAll(path, os.ModeDir|os.ModePerm) - if err != nil { - return err - } - - err = os.Chdir(path) - if err != nil { - return err - } - err = createProjectInDir(path) if err != nil { fmt.Println("") @@ -483,16 +467,6 @@ func upgradePonzuProjectDir(path string) error { fmt.Println(" [+]", r.Name()) } - // refresh dir to show files after restoring - err = os.Chdir(temp) - if err != nil { - return err - } - err = os.Chdir(path) - if err != nil { - return err - } - // clean-up backups := []string{filepath.Join(path, stamp), temp} for _, bak := range backups { |