1
0
Fork 0
mirror of https://github.com/nishiki/manage-password.git synced 2025-02-20 01:50:04 +00:00
This commit is contained in:
Adrien Waksberg 2017-03-29 22:24:50 +02:00 committed by Adrien Waksberg
parent c29d2e92d2
commit 74d08a7d5b

View file

@ -45,7 +45,7 @@ I18n.locale = lang.to_sym
bin_dir = File.dirname(__FILE__)
command = "#{bin_dir}/mpw-#{ARGV[0]}"
if Dir.glob("#{bin_dir}/mpw-*").include?("#{command}")
if Dir.glob("#{bin_dir}/mpw-*").include?(command.to_s)
begin
Kernel.load(command)
rescue OptionParser::ParseError => e