From 0c89715e3a1cd3a0ff3cfb3851db04f61800e2b8 Mon Sep 17 00:00:00 2001 From: adrien Date: Mon, 27 Jan 2014 08:38:34 +0100 Subject: [PATCH] fix bug --- mpw-ssh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mpw-ssh b/mpw-ssh index 83f835e..39fe1b3 100755 --- a/mpw-ssh +++ b/mpw-ssh @@ -15,7 +15,7 @@ require "#{APP_ROOT}/lib/CliSSH.rb" lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1] I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks) -I18n.load_path = Dir["#{APP_ROOT}/i18n/*.yml"] +I18n.load_path = Dir["#{APP_ROOT}/i18n/cli/*.yml"] I18n.default_locale = :en I18n.locale = lang.to_sym @@ -63,6 +63,8 @@ elsif ARGV.length < 1 puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]" exit 2 else + cli.decrypt() + cli.sync() cli.ssh(search) end