From 44d9e8224729a392c278ea6254038f961c95a0e8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 23 Jan 2021 10:27:52 +0000 Subject: [PATCH 1/1] lei forget-external: just show the location No need to show the full key name since the user mainly uses the location. --- lib/PublicInbox/LeiExternal.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/PublicInbox/LeiExternal.pm b/lib/PublicInbox/LeiExternal.pm index a4e644ee..5b5f08d1 100644 --- a/lib/PublicInbox/LeiExternal.pm +++ b/lib/PublicInbox/LeiExternal.pm @@ -76,9 +76,9 @@ sub lei_forget_external { delete($cfg->{$key}); $self->_config('--unset', $key); if ($? == 0) { - push @unset, $key; + push @unset, $l; } elsif (($? >> 8) == 5) { - push @not_found, $key; + push @not_found, $l; } else { $self->err("# --unset $key error"); return $self->x_it($?); @@ -86,7 +86,7 @@ sub lei_forget_external { } if (@unset) { next if $quiet; - $self->err("# $_ unset") for @unset; + $self->err("# $_ gone") for @unset; } elsif (@not_found) { $self->err("# $_ not found") for @not_found; } # else { already exited -- 2.44.0