diff options
| author | Felipe Contreras <felipe.contreras@gmail.com> | 2021-05-01 06:59:17 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2021-05-02 08:11:42 -0300 |
| commit | c1b99d6f949bbbd0eef1f70baa2a02c1857093b2 (patch) | |
| tree | cdbb666a5698ce92b0d2caf4b4197a9adde64641 /test/T395-ruby.sh | |
| parent | a75a9a5aed69515c9c53814f8597c932cf168d1e (diff) | |
test: ruby: simplify MAIL_DIR check
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Diffstat (limited to 'test/T395-ruby.sh')
| -rwxr-xr-x | test/T395-ruby.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/test/T395-ruby.sh b/test/T395-ruby.sh index 1d27e191..94fab106 100755 --- a/test/T395-ruby.sh +++ b/test/T395-ruby.sh @@ -12,10 +12,7 @@ test_ruby() { ( cat <<-\EOF require 'notmuch' - $maildir = ENV['MAIL_DIR'] - if not $maildir then - abort('environment variable MAIL_DIR must be set') - end + $maildir = ENV['MAIL_DIR'] || abort('MAIL_DIR not set') @db = Notmuch::Database.new($maildir) EOF cat |
