The string to match might not be "New directory" exactly, so match that
authorAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sun, 30 Aug 2009 04:05:23 +0000 (00:05 -0400)
committerAmitai Schlair <schmonz@magnetic-babysitter.(none)>
Sun, 30 Aug 2009 04:05:23 +0000 (00:05 -0400)
substring instead.

IkiWiki/Wrapper.pm

index 2354717..87c2ffc 100644 (file)
@@ -50,7 +50,7 @@ EOF
        {
                int j;
                for (j = 1; j < argc; j++)
-                       if (strcmp(argv[j], "New directory") == 0)
+                       if (strstr(argv[j], "New directory") != NULL)
                                exit(0);
        }
 EOF