Module: NCO_warning_filter

Overview

nco utilities issue a warning to stderr if the path of an input file has more than 254 characters we want to ignore this 20th century warning and do not abort if it appears on stderr github.com/nco/nco/blob/405aea3e6777dc9dd3ccb931471bdc9d8440ca7e/src/nco/nco_fl_utl.c#L386

Instance Method Summary collapse

Instance Method Details

#command_success?(out, err, status) ⇒ Boolean

Returns:

  • (Boolean)


89
90
91
92
93
94
95
96
# File 'lib/file_command.rb', line 89

def command_success?(out, err, status)
  return false unless status.success?
  unless err.empty?
    return false unless err =~ /and may not be portable to older operating systems|may not play well with older operating systems/
  end
  
  true
end