Commit Diff


commit - 9d75d6d8b9b213f880edb88cfe731cf76031afbc
commit + f96edc2510f43ce54ae271614ea2a4d751057d23
blob - 0f82b02f7532fe26523d5be6137ee0c72257304a
blob + 9dc01d186e7019fb0f3759684885e6b0142957af
--- plass
+++ plass
@@ -163,15 +163,16 @@ sub got {
 	# discard stdout
 	open my $fh, '-|', ($got, @_);
 	close($fh);
-	exit 1 if $?;
+	return !$?;
 }
 
 sub got_add {
-	got 'add', '-I', shift;
+	return got 'add', '-I', shift;
 }
 
 sub got_rm {
-	got 'remove', '-f', shift;
+	got 'remove', '-f', shift
+	    or exit(1);
 }
 
 sub got_ci {