mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-06 03:54:06 +02:00
Merge pull request #40 from bostelk/patch-2
Fix error check conditional
This commit is contained in:
commit
bfc1e8fd1e
@ -110,7 +110,7 @@ func rmModPack(modpack string) error {
|
||||
|
||||
func createModPackDir() error {
|
||||
err := os.Mkdir(filepath.Join(config.FactorioDir, "modpacks"), 0775)
|
||||
if err != nil {
|
||||
if err != nil && os.IsNotExist(err) {
|
||||
log.Printf("Could not create modpacks directory: %s", err)
|
||||
return err
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user