mirror of
https://github.com/nishiki/manage-password.git
synced 2024-11-27 07:33:05 +00:00
fix bug
This commit is contained in:
parent
52c1554e90
commit
0c89715e3a
1 changed files with 3 additions and 1 deletions
4
mpw-ssh
4
mpw-ssh
|
@ -15,7 +15,7 @@ require "#{APP_ROOT}/lib/CliSSH.rb"
|
||||||
lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1]
|
lang = Locale::Tag.parse(ENV['LANG']).to_simple.to_s[0..1]
|
||||||
|
|
||||||
I18n::Backend::Simple.send(:include, I18n::Backend::Fallbacks)
|
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.default_locale = :en
|
||||||
I18n.locale = lang.to_sym
|
I18n.locale = lang.to_sym
|
||||||
|
|
||||||
|
@ -63,6 +63,8 @@ elsif ARGV.length < 1
|
||||||
puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"
|
puts "#{I18n.t('ssh.option.usage')}: mpw-ssh SEARCH [options]"
|
||||||
exit 2
|
exit 2
|
||||||
else
|
else
|
||||||
|
cli.decrypt()
|
||||||
|
cli.sync()
|
||||||
cli.ssh(search)
|
cli.ssh(search)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue