Fix error check conditional

Oops, the condition should test for a "file already exists" error.
This commit is contained in:
Kye Bostelmann 2016-09-27 14:49:36 -03:00 committed by GitHub
parent bfc1e8fd1e
commit afb133a00a

View File

@ -110,7 +110,7 @@ func rmModPack(modpack string) error {
func createModPackDir() error {
err := os.Mkdir(filepath.Join(config.FactorioDir, "modpacks"), 0775)
if err != nil && os.IsNotExist(err) {
if err != nil && !os.IsExist(err) {
log.Printf("Could not create modpacks directory: %s", err)
return err
}