Skip to content

Commit

Permalink
Update mem_verify.sh
Browse files Browse the repository at this point in the history
Fixed ANONCHK regex to correctly grep the whole string and not the single letters in 'always'.
  • Loading branch information
ppascher authored Aug 31, 2017
1 parent 59a1e40 commit 7c280ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mem_verify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ ANONCHK
declare anonHugePagesEnabled=0

if [[ $anonHugePagesConfigured -gt 0 ]]; then
grep '[always]' $anonFileToChk >/dev/null && {
grep '\[always\]' $anonFileToChk >/dev/null && {
#echo anonymous HugePages are enabled
anonHugePagesEnabled=1
}
Expand Down

0 comments on commit 7c280ab

Please sign in to comment.