From b38376bb7b7f5253df9a3b266f3ce8a399399d48 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Mon, 4 Oct 2010 16:53:47 +0200 Subject: Use $SRCDIR favored over $PWD in ikiwiki config. --- ikiwiki_nb_admin.setup | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ikiwiki_nb_admin.setup b/ikiwiki_nb_admin.setup index 9a313e0..d078db8 100644 --- a/ikiwiki_nb_admin.setup +++ b/ikiwiki_nb_admin.setup @@ -9,7 +9,7 @@ our ($basedir, $builddir, $domain, $gitrepo); BEGIN { # git hook requires full path as basedir: $ENV{'HOME'} . '/mywiki' - $basedir = $ENV{'PWD'}; + $basedir = $ENV{'SRCDIR'} || $ENV{'PWD'}; $builddir = $ENV{'BUILDDIR'} || $basedir . '/build'; $domain = 'example.org'; $gitrepo = 'wiki'; -- cgit v1.2.3