PT-76 Fixed cmd line parsing for lines having #

This commit is contained in:
Carlos Salguero
2017-02-25 13:52:46 -03:00
parent b118e39d10
commit 43a58c4c64
8 changed files with 22 additions and 8 deletions

View File

@@ -314,7 +314,7 @@ _parse_config_files() {
echo "$config_opt" | grep '^[ ]*[^#]' >/dev/null 2>&1 || continue
config_opt="$(echo "$config_opt" | sed -e 's/^ *//g' -e 's/ *$//g' -e 's/[ ]*=[ ]*/=/' -e 's/[ ]*#.*$//')"
config_opt="$(echo "$config_opt" | sed -e 's/^ *//g' -e 's/ *$//g' -e 's/[ ]*=[ ]*/=/' -e 's/[ ]+#.*$//')"
[ "$config_opt" = "" ] && continue