Fix pluralisation on response from installing mods
This commit is contained in:
parent
e04c978488
commit
cde4b75c5d
18
main.go
18
main.go
|
@ -44,13 +44,23 @@ var commands = []Command{
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
for _, archivePath := range providedArguments[1:] {
|
var archivePaths = providedArguments[1:]
|
||||||
if installError := game.InstallMod(archivePath); installError != nil {
|
|
||||||
return "", installError
|
if len(archivePaths) > 1 {
|
||||||
|
for _, archivePath := range archivePaths {
|
||||||
|
if installError := game.InstallMod(archivePath); installError != nil {
|
||||||
|
return "", installError
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return "mods installed", nil
|
||||||
}
|
}
|
||||||
|
|
||||||
return "mods installed", nil
|
if installError := game.InstallMod(archivePaths[0]); installError != nil {
|
||||||
|
return "", installError
|
||||||
|
}
|
||||||
|
|
||||||
|
return "mod installed", nil
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue