diff options
author | Marzal <2069735+Marzal@users.noreply.github.com> | 2019-10-29 20:47:07 +0300 |
---|---|---|
committer | Marzal <2069735+Marzal@users.noreply.github.com> | 2019-10-29 20:47:07 +0300 |
commit | 8353483d1dcc89be5eecf032b474a6045b7f3782 (patch) | |
tree | 3ca9def2904f3ce388c54232ca21c2fb1995a714 /include/profiles | |
parent | 0fe16a286e5671802582b10d33016a3cf9cdfdbb (diff) |
grep doesn't work with '\|' in AIX. grep -E is more POSIX compliant.
Diffstat (limited to 'include/profiles')
-rw-r--r-- | include/profiles | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/profiles b/include/profiles index d05dcbb3..f1bfb326 100644 --- a/include/profiles +++ b/include/profiles @@ -46,7 +46,7 @@ fi # Security check for unexpected and possibly harmful escape characters (hyphen should be listed as first or last character) - DATA=$(grep -v '^$\|^ \|^#\|^config:' ${PROFILE} | tr -d '[:alnum:]/\[\]\(\)_\|,\.:;= \n\r-' | od -An -ta | sed 's/ /!space!/g') + DATA=$(grep -Ev '^$|^ |^#|^config:' "${PROFILE}" | tr -d '[:alnum:]/\[\]\(\)_\|,\.:;= \n\r-' | od -An -ta | sed 's/ /!space!/g') if ! IsEmpty "${DATA}"; then DisplayWarning "Your profile '${PROFILE}' contains unexpected characters. See the log file for more information." LogText "Found unexpected or possibly harmful characters in profile '${PROFILE}'. See which characters matched in the output below and compare them with your profile." |