lib/hss in hss-0.1.12 vs lib/hss in hss-0.1.13

- old
+ new

@@ -1,11 +1,11 @@ #!/usr/bin/env ruby require 'yaml' require 'pathname' -Version = '0.1.12' +Version = '0.1.13' if ARGV.length == 1 and ARGV[0] == 'version' puts Version exit end @@ -37,10 +37,10 @@ puts 'No config file found' exit 1 end Conf = open(possible_paths[0]) { |file| YAML.load(file.read) } -Input = ARGV.delete_at( ARGV.find_index { |x| x[0] != '-' } || 0 ) +Input = ARGV.delete_at( ARGV.find_index { |x| x[0, 1] != '-' } || 0 ) Args = ARGV.inject('') { |memo, obj| memo += " '" + obj.gsub(/([$"])/, '\1') + "'" } Cmd = (ENV.include? 'HSS_DEBUG') ? 'echo ssh' : 'ssh' if Input.nil? or Input == 'help' puts 'How to use:'