bin/i2cssh in i2cssh-1.8.0 vs bin/i2cssh in i2cssh-1.8.1
- old
+ new
@@ -41,11 +41,10 @@
end
@i2_options[:login] = login_override if login_override
@i2_options[:direction] ||= :column
@i2_options[:direction] = @i2_options[:direction].to_sym
-
@ssh_environment.merge!(config_hash["environment"].inject({}){|m, v| m.merge(v)}) if config_hash["environment"]
end
if File.exists?(@config_file)
config_hash = YAML.load File.read @config_file
@@ -57,9 +56,11 @@
else
# Convert version 1 format to version 2
@clusters = config_hash["clusters"].inject({}){|m, c| m[c[0]] = {"hosts" => c[1]}; m}
end
+else
+ set_options({})
end
optparse = OptionParser.new do |opts|
opts.banner = "Usage: #{File.basename(__FILE__)} [options] [(username@host [username@host] | username@cluster)]"