mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-01-06 03:54:06 +02:00
Fix error check conditional
Ignore file already exist errors. The "modpacks" directory will exist at least on the second launch.
This commit is contained in:
parent
789a0e25a7
commit
ef25979df4
@ -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