Skip to content

Commit 2e4f659

Browse files
committed
update syntax for command.stdout check
Signed-off-by: Dominik Richter <dominik.richter@gmail.com>
1 parent db185e5 commit 2e4f659

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

default/serverspec/sysctl_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200

201201

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

0 commit comments

Comments
 (0)