diff --git a/IkiWiki/Wrapper.pm b/IkiWiki/Wrapper.pm index 2354717c3..87c2ffc89 100644 --- a/IkiWiki/Wrapper.pm +++ b/IkiWiki/Wrapper.pm @@ -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