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 2354717c3a855746479a19fc6823065652a587a3..87c2ffc89f0e9543c6ed8d095a8a7ae73921ab05 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