diff options
author | Leah Neukirchen <leah@vuxu.org> | 2017-10-18 16:00:04 +0200 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2017-10-18 16:00:04 +0200 |
commit | 78c75bf0fa665250f3ff66a7625ec4772ea483d3 (patch) | |
tree | c7e3a05804b6720cb3c8448f4feee543cc2f7cdd | |
parent | 7d8950dcd845ed9744cd98bd424b07301222c139 (diff) | |
download | notyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.tar.gz notyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.tar.xz notyet-78c75bf0fa665250f3ff66a7625ec4772ea483d3.zip |
exit 1 when nothing matched
-rwxr-xr-x | notyet | 4 |
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 |