diff options
author | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-20 13:38:13 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2019-02-20 16:24:21 +0100 |
commit | ab4af3c76286dad7f5ea320c30023cb19abb4caa (patch) | |
tree | 23ec165925168205edaadeda1913cf0bd518e783 | |
parent | 7cba285a7d51e3109618292220b7f2d4a2e264f7 (diff) | |
download | ptxdist-ab4af3c76286dad7f5ea320c30023cb19abb4caa.tar.gz ptxdist-ab4af3c76286dad7f5ea320c30023cb19abb4caa.tar.xz |
ptxd_kconfig_create_config_merge: handle values that contain '='
Only split at the first '='. This way, 'b' contains the rest of the line,
even if it contains another '='.
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r-- | scripts/lib/ptxd_lib_kconfig.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/ptxd_lib_kconfig.sh b/scripts/lib/ptxd_lib_kconfig.sh index fd0c36c17..5e96d8d2a 100644 --- a/scripts/lib/ptxd_lib_kconfig.sh +++ b/scripts/lib/ptxd_lib_kconfig.sh @@ -120,7 +120,7 @@ ptxd_kconfig_create_config_merge() { IFS="=" exec {diff_fd}< "${diff}" - while read a b line <&${diff_fd}; do + while read a b <&${diff_fd}; do if [[ -z "${b}" && "${a}" =~ ^'# '[^\ ]*' is not set'$ ]]; then a="${a% is not set}" a="${a#\# }" |