Skip to content

Commit

Permalink
update syntax for command.stdout check
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Richter <[email protected]>
  • Loading branch information
arlimus committed Oct 20, 2014
1 parent db185e5 commit 2e4f659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion default/serverspec/sysctl_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@


# check if we find the nx flag
if command('cat /proc/cpuinfo').return_stdout?(/^flags.*?:.*? nx( .*?)?$/)
if command('cat /proc/cpuinfo').stdout =~ /^flags.*?:.*? nx( .*?)?$/
true
else
# if no nx flag is present, we require exec-shield
Expand Down

0 comments on commit 2e4f659

Please sign in to comment.