bin/i2cssh in i2cssh-1.4.1 vs bin/i2cssh in i2cssh-1.4.2

- old
+ new

@@ -17,10 +17,11 @@ # Options from the config file i2_options[:iterm2] = config_hash["iterm2"] i2_options[:login_override] = config_hash["login"] i2_options[:broadcast] = config_hash["broadcast"] + i2_options[:profile] = config_hash["profile"] else # Convert version 1 format to version 2 clusters = config_hash["clusters"].inject({}){|m, c| m[c[0]] = {"hosts" => c[1]}; m} end @@ -45,9 +46,10 @@ cluster_hosts = cluster["hosts"] i2_options[:login_override] = cluster["login"] || i2_options[:login_override] i2_options[:login_override] = login_from_cli if login_from_cli i2_options[:broadcast] = cluster["broadcast"] || i2_options[:broadcast] + i2_options[:profile] = cluster["profile"] || i2_options[:profile] if i2_options[:login_override] then cluster_hosts = cluster_hosts.map{|h| "#{i2_options[:login_override]}@#{h}"} end