From 5d05def545d7788c4181f841382ec38c8fcfc6fc Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Tue, 18 Oct 2022 12:48:33 -0700 Subject: src-unregister: update for advent of lib-src/mr/config --- bin/src-unregister | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/bin/src-unregister b/bin/src-unregister index 40abce0d..751ccddf 100755 --- a/bin/src-unregister +++ b/bin/src-unregister @@ -35,10 +35,13 @@ system "src-register-all"; die "src-register-all failed\n" unless ($? == 0); my @known_repos; -open my $fh, "<", "$ENV{HOME}/.mrconfig"; -while (<$fh>) { - if (/^\[(src\/.+)\]$/) { - push @known_repos, catfile($ENV{HOME}, $1); +for my $f ("$ENV{HOME}/.mrconfig", + "$ENV{HOME}/src/dotfiles/lib-src/mr/config") { + open my $fh, "<", $f; + while (<$fh>) { + if (/^\[(src\/.+)\]$/) { + push @known_repos, catfile($ENV{HOME}, $1); + } } } -- cgit v1.2.3