lib/shelr.rb in shelr-0.11.5 vs lib/shelr.rb in shelr-0.11.6

- old
+ new

@@ -27,10 +27,10 @@ ensure_config_dir_exist File.open(API_KEY_CFG, 'w+') { |f| f.puts(key.strip) } end def backend - @backend ||= File.read(BACKEND_CFG).strip || 'script' + @backend ||= File.exist?(BACKEND_CFG) ? File.read(BACKEND_CFG).strip : 'script' end def backend=(bin) unless ['script', 'ttyrec'].include?(bin) puts "Backend should be either `script` or `ttyrec`"