mirror of
https://github.com/OpenFactorioServerManager/factorio-server-manager.git
synced 2025-03-17 21:07:54 +02:00
Fix error check conditional
Oops, the condition should test for a "file already exists" error.
This commit is contained in:
parent
bfc1e8fd1e
commit
afb133a00a
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user