aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-05-15 18:20:52 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-05-15 18:20:52 -0400
commit0438de905b1009c02e653f11983f2ad501b02a30 (patch)
tree0930d9bf804830d6c2d242d92bd08fbde797bf78 /IkiWiki.pm
parentc7b1eb242fc5b910f138aeadbae7a232badba84f (diff)
downloadikiwiki-0438de905b1009c02e653f11983f2ad501b02a30.tar
ikiwiki-0438de905b1009c02e653f11983f2ad501b02a30.tar.gz
ENV can be used in the setup file to override environment variable setting, such as TZ or PATH.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r--IkiWiki.pm6
1 files changed, 6 insertions, 0 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm
index 88407584f..7e64518b3 100644
--- a/IkiWiki.pm
+++ b/IkiWiki.pm
@@ -103,6 +103,12 @@ sub checkconfig () { #{{{
}
}
+ if (ref $config{ENV} eq 'HASH') {
+ foreach my $val (keys %{$config{ENV}}) {
+ $ENV{$val}=$config{ENV}{$val};
+ }
+ }
+
if ($config{w3mmode}) {
eval q{use Cwd q{abs_path}};
error($@) if $@;