summaryrefslogtreecommitdiff
path: root/bin/src-unregister
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-02-16 11:16:08 -0700
committerSean Whitton <spwhitton@spwhitton.name>2017-02-16 11:20:35 -0700
commitaaa7e6437afe4bcc0be861d3914693182e55c30e (patch)
tree06a943aad6f5e09ea2a2badcc9b1b457cb69fd52 /bin/src-unregister
parentb8423670b74b50d06925774d9461000595d42fb5 (diff)
downloaddotfiles-aaa7e6437afe4bcc0be861d3914693182e55c30e.tar.gz
factor src-register-all out of sysmaint
Diffstat (limited to 'bin/src-unregister')
-rwxr-xr-xbin/src-unregister3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/src-unregister b/bin/src-unregister
index ffc31be0..49e82ed7 100755
--- a/bin/src-unregister
+++ b/bin/src-unregister
@@ -25,6 +25,9 @@ foreach my $repo ( @ARGV ) {
if ! ( -d "$repo/.git" || -d "$repo/.hg" );
}
+# we rely on calling `mr status` so ensure the repo is registered
+system "src-register-all";
+
foreach my $repo ( @ARGV ) {
(my $output, undef) = tee_stdout { system "mr -m -d $repo status" };
my $confirm = 1;