Commit 76adfe99 authored by Mikhail Tergoev's avatar Mikhail Tergoev

Merge branch 'Boria138-strip-ppdb' into devel

parents 1ba5f809 b5182638
......@@ -557,7 +557,7 @@ ${translations[Usage examples:]}
val="${val#\"}"
val="${val%\"}"
all_vars["$key"]="$val"
done < <(grep -E '^export ' "$ppdb_path" | sed '/^[[:space:]]*$/d')
done < <(grep -E '^export ' "$ppdb_path" | sed -E 's/[[:space:]]*#.*$//' | sed '/^[[:space:]]*$/d')
check_user_conf
if [[ -f "$USER_CONF" ]]; then
......@@ -566,7 +566,7 @@ ${translations[Usage examples:]}
val="${val#\"}"
val="${val%\"}"
all_vars["$key"]="$val"
done < <(grep -E '^export ' "$USER_CONF" 2>/dev/null | sed '/^[[:space:]]*$/d')
done < <(grep -E '^export ' "$USER_CONF" 2>/dev/null | sed -E 's/[[:space:]]*#.*$//' | sed '/^[[:space:]]*$/d')
fi
while IFS='=' read -r key val; do
......@@ -576,7 +576,7 @@ ${translations[Usage examples:]}
if [[ -z "${all_vars[$key]+x}" ]]; then
all_vars["$key"]="$val"
fi
done < <(grep -E '^export ' "$PORT_SCRIPTS_PATH/var" | sed '/^[[:space:]]*$/d')
done < <(grep -E '^export ' "$PORT_SCRIPTS_PATH/var" | sed -E 's/[[:space:]]*#.*$//' | sed '/^[[:space:]]*$/d')
for key in "${!all_vars[@]}"; do
echo "${key}=\"${all_vars[$key]}\""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment