From 706a52ea12976ab2b7892e21a97fff99fb6731b3 Mon Sep 17 00:00:00 2001 From: Antonio Terceiro Date: Sun, 18 May 2014 22:14:25 -0300 Subject: feed2imap-test: reuse cache dir/protect config this reduces the noise in the output and helps testing feed updates --- feed2imap-test | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feed2imap-test b/feed2imap-test index 3216d88..b5e7390 100755 --- a/feed2imap-test +++ b/feed2imap-test @@ -6,7 +6,6 @@ require 'yaml' base = File.expand_path(File.dirname(__FILE__)) tmp = File.join(base, 'tmp') -FileUtils.rm_rf(tmp) FileUtils.mkdir_p(tmp) # target maildir @@ -46,6 +45,7 @@ config = File.join(tmp, 'feed2imap.yaml') File.open(config, 'w') do |f| f.write(config_data) end +FileUtils.chmod 0600, config unless system('ruby', "-I#{base}/lib", "#{base}/bin/feed2imap", '--config', config, '--verbose') puts("E: feed2imap failed") -- cgit v1.2.3