From bd4d350bda5472cf76266d2f65b36fe1f617e9b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Sun, 22 Feb 2015 17:30:42 +0100 Subject: [PATCH] Fix: too harsh return value check. --- util/org/cacert/gigi/util/FetchLocales.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/org/cacert/gigi/util/FetchLocales.java b/util/org/cacert/gigi/util/FetchLocales.java index 21a789f3..aed8973f 100644 --- a/util/org/cacert/gigi/util/FetchLocales.java +++ b/util/org/cacert/gigi/util/FetchLocales.java @@ -35,7 +35,7 @@ public class FetchLocales { public static void main(String[] args) throws IOException, ParserConfigurationException, TransformerException { System.out.println("downloading locales ..."); File locale = new File("locale"); - if ( !locale.mkdir()) { + if ( !locale.isDirectory() && !locale.mkdir()) { throw new IOException("Could not create locales directory."); } -- 2.39.2