From: Felix Dörre Date: Sun, 22 Feb 2015 16:30:42 +0000 (+0100) Subject: Fix: too harsh return value check. X-Git-Url: https://code.wpia.club/?p=gigi.git;a=commitdiff_plain;h=bd4d350bda5472cf76266d2f65b36fe1f617e9b4 Fix: too harsh return value check. --- 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."); }