Skip to content

Commit c19cd28

Browse files
author
Paul Gale
committed
Pipe output from '/sbin/sysctl -n' through sed to remove spaces/tabs
1 parent 403075c commit c19cd28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
$qvalue = shellquote("${value}")
9191
# lint:endignore
9292
exec { "enforce-sysctl-value-${qtitle}":
93-
unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle})\" = ${qvalue}",
93+
unless => "/usr/bin/test \"$(/sbin/sysctl -n ${qtitle} | sed -r 's/[ \t]+/ /g')\" = ${qvalue}",
9494
command => "/sbin/sysctl -w ${qtitle}=${qvalue}",
9595
}
9696
}

0 commit comments

Comments
 (0)