]> Sergey Matveev's repositories - public-inbox.git/commit
init: pass global variables into subs
authorEric Wong <e@80x24.org>
Fri, 15 Nov 2019 09:50:36 +0000 (09:50 +0000)
committerEric Wong <e@80x24.org>
Sat, 16 Nov 2019 11:05:23 +0000 (11:05 +0000)
commitca783e786a2559ecd161c33be17e46d3baaa25be
tree13bf12e65cbcd238285f542264eccda2fe14b29e
parentd155f989769861be45938345350f07365ca945c1
init: pass global variables into subs

Avoid 'Variable "%s" will not stay shared' warnings
when the contents of this script eval'ed into a sub.

We also need to rely on ->DESTROY instead of END{}
to unlink the lock file on sub exit.
script/public-inbox-init