]> Sergey Matveev's repositories - public-inbox.git/commitdiff
lei forget-external: just show the location
authorEric Wong <e@80x24.org>
Sat, 23 Jan 2021 10:27:52 +0000 (10:27 +0000)
committerEric Wong <e@80x24.org>
Sat, 23 Jan 2021 23:45:31 +0000 (23:45 +0000)
No need to show the full key name since the user mainly
uses the location.

lib/PublicInbox/LeiExternal.pm

index a4e644ee6bae31d3d8e3caef85935bb36ef54366..5b5f08d178d0f04d68455b0ad0964c0849c2cccb 100644 (file)
@@ -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