lib/specinfra/command/base.rb in specinfra-0.0.9 vs lib/specinfra/command/base.rb in specinfra-0.0.10
- old
+ new
@@ -288,10 +288,10 @@
target = "[[:space:]]#{target}"
"getent aliases #{escape(recipient)} | grep -- #{escape(target)}$"
end
def get_file_content(file)
- "cat #{file}"
+ "cat #{file} 2> /dev/null || echo -n"
end
def check_container(container)
raise NotImplementedError.new
end