mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-24 05:17:24 +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 {
|
func createModPackDir() error {
|
||||||
err := os.Mkdir(filepath.Join(config.FactorioDir, "modpacks"), 0775)
|
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)
|
log.Printf("Could not create modpacks directory: %s", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user