summaryrefslogtreecommitdiff
path: root/bin/src-unregister
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-02-16 21:57:55 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-02-16 21:58:29 -0700
commit09cbc33653db1c3b46a283f93091e2e937b0bb7f (patch)
treef14c196d1a1bfd78c9e83014a38e152a9c0e5591 /bin/src-unregister
parenta13e57555bb1221785dee3713e9442f29046f05d (diff)
downloaddotfiles-09cbc33653db1c3b46a283f93091e2e937b0bb7f.tar.gz
src-unregister registers a repo before unregistering
This isn't really needed because src-register-all gets called. But it's a nice additional safety catch.
Diffstat (limited to 'bin/src-unregister')
-rwxr-xr-xbin/src-unregister1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/src-unregister b/bin/src-unregister
index 49e82ed7..a93d87fd 100755
--- a/bin/src-unregister
+++ b/bin/src-unregister
@@ -29,6 +29,7 @@ foreach my $repo ( @ARGV ) {
system "src-register-all";
foreach my $repo ( @ARGV ) {
+ system "mr -d $repo register";
(my $output, undef) = tee_stdout { system "mr -m -d $repo status" };
my $confirm = 1;
if (length($output)) {