lib/mixlib/install/util.rb in mixlib-install-3.12.1 vs lib/mixlib/install/util.rb in mixlib-install-3.12.3

- old
+ new

@@ -107,11 +107,11 @@ # Generates a command (or series of commands) wrapped so that it can be # invoked on a remote instance or locally. # # This method uses the Bourne shell (/bin/sh) to maximize the chance of - # cross platform portability on Unixlike systems. + # cross platform portability on Unix-like systems. # # @param [String] the command # @return [String] a wrapped command string def wrap_command(cmd) cmd = "false" if cmd.nil? @@ -127,10 +127,10 @@ # @return [String] generated user-agent string def user_agent_string(headers) require_relative "version" user_agents = %W{mixlib-install/#{Mixlib::Install::VERSION}} user_agents << headers - # Ensure that if the default user agent is aleady set it doesn't get duplicated + # Ensure that if the default user agent is already set it doesn't get duplicated user_agents.flatten.compact.uniq.join(" ") end def map_windows_version(version) # This logic does not try to compare and determine proper versions based on conditions or ranges.