From: Amitai Schlair Date: Sun, 30 Aug 2009 04:05:23 +0000 (-0400) Subject: The string to match might not be "New directory" exactly, so match that X-Git-Tag: 3.14159265~61^2~21 X-Git-Url: http://git.tremily.us/?p=ikiwiki.git;a=commitdiff_plain;h=992d0aac09a3e3e81d7ad999910a4a026984f804 The string to match might not be "New directory" exactly, so match that substring instead. --- 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