Commit Diff


commit - 1f89d66ab922c72bf01bf9b0662b832c9309e45f
commit + 19df8a205a71a011b3834e975eecdf3532a20829
blob - 380dadc2ac66c40f077e9dea6dc13a3f602a6ab2
blob + af2de76fafffc3d3e4315dacb566c6e956c716db
--- plass
+++ plass
@@ -163,15 +163,17 @@ sub passfind {
 sub got {
 	open my $fh, '-|', ($got, @_);
 	close($fh);
-	die "\"@_\" failed" if $? != 0;
+	return !$?;
 }
 
 sub got_add {
-	got 'add', '-I', shift;
+	got 'add', '-I', shift
+	    or exit 1;
 }
 
 sub got_rm {
-	got 'remove', '-f', shift;
+	got 'remove', '-f', shift
+	    or exit 1;
 }
 
 sub got_ci {