mirror of
https://github.com/osmarks/mycorrhiza.git
synced 2024-10-30 03:36:16 +00:00
Fix the migrator failing at wikis with no .myco files
This commit is contained in:
parent
242dd462ea
commit
16114f5e83
@ -86,6 +86,11 @@ func MigrateRocketsMaybe() {
|
||||
_ = file.Close()
|
||||
}
|
||||
|
||||
if len(mycoFiles) == 0 {
|
||||
hop.Abort()
|
||||
return
|
||||
}
|
||||
|
||||
if hop.WithFiles(mycoFiles...).Apply().HasErrors() {
|
||||
log.Fatal("Something went wrong when commiting rocket link migration: ", hop.FirstErrorText())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user