lib/serverspec/backend/exec.rb in serverspec-0.10.2 vs lib/serverspec/backend/exec.rb in serverspec-0.10.3
- old
+ new
@@ -61,10 +61,10 @@
retlines = ret[:stdout].split(/[\r\n]+/).map(&:strip)
proc_index = retlines.index("Process '#{process}'")
return false unless proc_index
- retlines[proc_index+2].match(/\Amonitoring status\s+monitored\Z/) != nil
+ retlines[proc_index+2].match(/\Amonitoring status\s+monitored\Z/i) != nil
end
def check_readable(file, by_whom)
mode = sprintf('%04s',run_command(commands.get_mode(file))[:stdout].strip)
mode = mode.split('')