lib/specinfra/command/base.rb in specinfra-0.6.0 vs lib/specinfra/command/base.rb in specinfra-0.6.1

- old
+ new

@@ -171,10 +171,10 @@ "crontab -u #{escape(user)} -l | grep -- #{escape(entry_escaped)}" end end def check_link(link, target) - "stat -c %N #{escape(link)} | grep -- \"-> \\`#{escape(target)}'\"" + "stat -c %N #{escape(link)} | egrep -e \"-> .#{escape(target)}.\"" end def check_installed_by_gem(name, version=nil) regexp = "^#{name}" cmd = "gem list --local | grep -w -- #{escape(regexp)}"