summaryrefslogtreecommitdiff
path: root/bin/src-unregister
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2017-05-29 09:41:02 +0100
committerSean Whitton <spwhitton@spwhitton.name>2017-05-29 09:41:02 +0100
commit92e97dfd474573dcc90338203617500faa6a2e9b (patch)
tree41084f3d94eed9a3f1d9c413f17c46db71c12323 /bin/src-unregister
parent23b0489dad6d93e079b63f2a69207412705b9219 (diff)
downloaddotfiles-92e97dfd474573dcc90338203617500faa6a2e9b.tar.gz
src-register should die if it couldn't `mr register`
Diffstat (limited to 'bin/src-unregister')
-rwxr-xr-xbin/src-unregister4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/src-unregister b/bin/src-unregister
index 99ed4b00..356c1f21 100755
--- a/bin/src-unregister
+++ b/bin/src-unregister
@@ -33,6 +33,10 @@ foreach my $repo ( @ARGV ) {
{
local $CWD = $repo;
system "mr register";
+ my $exit = $? >> 8;
+ if ($exit != 0) {
+ die;
+ }
}
(my $output, undef) = tee_stdout { system "mr -m -d $repo status" };
my $confirm = 1;