make back compatible

This commit is contained in:
2021-04-16 22:02:25 +02:00
parent aa0b81023f
commit 1bbd3879fe
8 changed files with 83 additions and 114 deletions

View File

@@ -30,9 +30,7 @@ var backupCmd = &cobra.Command{
CheckErr(err)
defer lock.Unlock()
config := internal.GetConfig()
err = config.CheckConfig()
CheckErr(err)
CheckErr(internal.CheckConfig())
selected, err := internal.GetAllOrSelected(cmd, false)
CheckErr(err)