helm/rake/lib/sh.rb
2014-06-16 01:24:05 -04:00

15 lines
317 B
Ruby

require_relative 'output'
# A 'safe' sh function that won't stop rake in its tracks
# when it encounters a problem. I'll leave it up to the
# programmer to expect problems and terminate when necessary.
def sh_safe(cmd)
begin
return sh(cmd)
rescue
echoerr $!
return false
end
end