lib/specinfra/command/base/file.rb in specinfra-2.43.1 vs lib/specinfra/command/base/file.rb in specinfra-2.43.2

- old
+ new

@@ -116,10 +116,10 @@ def get_owner_group(file) "stat -c %G #{escape(file)}" end def check_is_linked_to(link, target) - "stat -c %N #{escape(link)} | egrep -e \"-> .#{escape(target)}.\"" + %Q|test x"$(readlink #{escape(link)})" = x"#{escape(target)}"| end def check_is_link(link) "test -L #{escape(link)}" end