about summary refs log tree commit homepage
path: root/script
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-28 07:52:02 +0000
committerEric Wong <e@80x24.org>2021-04-28 19:30:58 +0000
commiteee88c0967d741686e1d14a01bc34c55167213e4 (patch)
tree9876873bc9550c9327b1c1c35494299033c1d03f /script
parent63e2751ace2dd35a661620a9ad30d6c92948a009 (diff)
downloadpublic-inbox-eee88c0967d741686e1d14a01bc34c55167213e4.tar.gz
This lets us share more code and reduces cognitive overhead when
it comes to picking names (because {lsss} was ridiculous).

We'll need to ensure the first error set in lei is the actual
error we exit with, otherwise things can get confusing and
errors may get lost.
Diffstat (limited to 'script')
-rwxr-xr-xscript/lei4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/lei b/script/lei
index db302422..90a93839 100755
--- a/script/lei
+++ b/script/lei
@@ -116,10 +116,10 @@ Falling back to (slow) one-shot mode
                 } elsif ($buf eq '-WINCH') {
                         kill($buf, @parent); # for MUA
                 } elsif ($buf =~ /\Ax_it ([0-9]+)\z/) {
-                        $x_it_code = $1 + 0;
+                        $x_it_code ||= $1 + 0;
                         last;
                 } elsif ($buf =~ /\Achild_error ([0-9]+)\z/) {
-                        $x_it_code = $1 + 0;
+                        $x_it_code ||= $1 + 0;
                 } else {
                         $sigchld->();
                         die $buf;