]> sipb.mit.edu Git - ikiwiki.git/blobdiff - IkiWiki/Wrapper.pm
The string to match might not be "New directory" exactly, so match that
[ikiwiki.git] / IkiWiki / Wrapper.pm
index 2354717c3a855746479a19fc6823065652a587a3..87c2ffc89f0e9543c6ed8d095a8a7ae73921ab05 100644 (file)
@@ -50,7 +50,7 @@ EOF
        {
                int j;
                for (j = 1; j < argc; j++)
        {
                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
                                exit(0);
        }
 EOF