Merge branch 'jk/utf8-switch-between-nfd-and-nfc'
[gitweb.git] / contrib / mw-to-git / t / test-gitmw-lib.sh
index c783752e02041ef3ab9d2d799b93bed416a27d67..6546294f159e940eb8f7adc3e695f16d9395eebc 100755 (executable)
@@ -289,7 +289,6 @@ start_lighttpd () {
 # Kill daemon lighttpd and removes files and folders associated.
 stop_lighttpd () {
        test -f "$WEB_TMP/pid" && kill $(cat "$WEB_TMP/pid")
-       rm -rf "$WEB"
 }
 
 # Create the SQLite database of the MediaWiki. If the database file already
@@ -415,6 +414,7 @@ wiki_reset () {
 wiki_delete () {
        if test $LIGHTTPD = "true"; then
                stop_lighttpd
+               rm -fr "$WEB"
        else
                # Delete the wiki's directory.
                rm -rf "$WIKI_DIR_INST/$WIKI_DIR_NAME" ||