From a310c43176e22815722608c8dc3e6cd5a42bc091 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Tue, 20 Aug 2019 14:24:06 +0200 Subject: [PATCH] Set hyphen as last character to allow it being matched --- include/profiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/profiles b/include/profiles index 26b7b9b1..8121cd9a 100644 --- a/include/profiles +++ b/include/profiles @@ -59,7 +59,7 @@ fi # Now parse the profile and filter out unwanted characters - DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)\-_\|,\.:;= \n\r' | sed 's/ /!space!/g') + DATA=$(egrep "^config:|^[a-z-].*=" ${PROFILE} | tr -dc '[:alnum:]/\[\]\(\)_\|,\.:;= \n\r-' | sed 's/ /!space!/g') for CONFIGOPTION in ${DATA}; do if ContainsString "^config:" "${CONFIGOPTION}"; then # Old style configuration