diff options
author | Eric Wong <e@80x24.org> | 2023-09-24 05:42:09 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-09-24 18:56:05 +0000 |
commit | e3455d2f3b100a13cbf7cfe6b36619096a2c4e8a (patch) | |
tree | 7422e59993cf9dfe53565ca7a69818b2f9493bc5 /lib/PublicInbox/LeiInit.pm | |
parent | 89ded2496df4b638aa35c93a1a48f572261d2a02 (diff) | |
download | public-inbox-e3455d2f3b100a13cbf7cfe6b36619096a2c4e8a.tar.gz |
2020-2021 were bad times and I somehow got deluded into believing git-config(1) would always succeed :x
Diffstat (limited to 'lib/PublicInbox/LeiInit.pm')
-rw-r--r-- | lib/PublicInbox/LeiInit.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/PublicInbox/LeiInit.pm b/lib/PublicInbox/LeiInit.pm index 27ce8169..94897e61 100644 --- a/lib/PublicInbox/LeiInit.pm +++ b/lib/PublicInbox/LeiInit.pm @@ -23,7 +23,7 @@ sub lei_init { # some folks like symlinks and bind mounts :P if (@dir && "@cur[1,0]" eq "@dir[1,0]") { - $self->_config('leistore.dir', $dir); + $self->_config('leistore.dir', $dir) or return; $self->_lei_store(1)->done; return $self->qerr("$exists (as $cur)"); } @@ -31,7 +31,7 @@ sub lei_init { E: leistore.dir=$cur already initialized and it is not $dir } - $self->_config('leistore.dir', $dir); + $self->_config('leistore.dir', $dir) or return; $self->_lei_store(1)->done; $exists //= "# leistore.dir=$dir newly initialized"; $self->qerr($exists); |