X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=util%2Forg%2Fcacert%2Fgigi%2Futil%2FFetchLocales.java;h=aed8973f41dbf91225823bd785153883e41d48ce;hp=21a789f3342c8757f03e95d047123841ad744f6d;hb=bd4d350bda5472cf76266d2f65b36fe1f617e9b4;hpb=575b68a79c66f34a6f7dfc2c0c361df5ec35684e 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."); }