|
@@ -154,7 +154,7 @@ func runRestore(c *cli.Context) error {
|
|
|
|
|
|
|
|
|
reposPath := filepath.Join(archivePath, "repositories.zip")
|
|
|
- if !c.Bool("exclude-repos") && !c.Bool("database-only") && osutil.IsDir(reposPath) {
|
|
|
+ if !c.Bool("exclude-repos") && !c.Bool("database-only") && osutil.IsFile(reposPath) {
|
|
|
if err := zip.ExtractTo(reposPath, filepath.Dir(conf.Repository.Root)); err != nil {
|
|
|
log.Fatal("Failed to extract 'repositories.zip': %v", err)
|
|
|
}
|