mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-24 20:08:10 +01:00
test: ruby: simplify MAIL_DIR check
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
This commit is contained in:
parent
a75a9a5aed
commit
c1b99d6f94
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue