about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2017-10-18 16:00:04 +0200
committerLeah Neukirchen <leah@vuxu.org>2017-10-18 16:00:04 +0200
commit78c75bf0fa665250f3ff66a7625ec4772ea483d3 (patch)
treec7e3a05804b6720cb3c8448f4feee543cc2f7cdd
parent7d8950dcd845ed9744cd98bd424b07301222c139 (diff)
downloadnotyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.tar.gz
notyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.tar.xz
notyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.zip
exit 1 when nothing matched
-rwxr-xr-xnotyet4
1 files changed, 4 insertions, 0 deletions
diff --git a/notyet b/notyet
index b713434..f74631f 100755
--- a/notyet
+++ b/notyet
@@ -215,6 +215,10 @@ if count_only
   exit
 end
 
+if t.children.empty? && !ARGV.empty?
+  exit 1
+end
+
 if $edit && STDOUT.tty?
   rd, wr = IO.pipe
   $stdout = wr