From: Paul Hänsch Date: Wed, 14 Jan 2026 05:15:30 +0000 (+0100) Subject: bugfix: make sure to create data dir *before* setting up .gitignore X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=82a22a2a35c27a205b7c03adec09c4f5be57db1a;p=shellwiki bugfix: make sure to create data dir *before* setting up .gitignore --- diff --git a/index.cgi b/index.cgi index c121c38..dc16b84 100755 --- a/index.cgi +++ b/index.cgi @@ -44,6 +44,7 @@ wiki_text() { } if [ "$REV_PAGES" = true -a ! -f "$_DATA/.gitignore" ]; then + mkdir -p "$_DATA/" cat >"$_DATA/.gitignore" <<-EOF users.db serverkey