diff --git a/main.go b/main.go index 108c0a4..ce1855b 100644 --- a/main.go +++ b/main.go @@ -44,13 +44,23 @@ var commands = []Command{ } }() - for _, archivePath := range providedArguments[1:] { - if installError := game.InstallMod(archivePath); installError != nil { - return "", installError + var archivePaths = providedArguments[1:] + + 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 }, },