]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scripts: kconfig: merge_config.sh: fix unexpected operator warning
authorWeizhao Ouyang <o451686892@gmail.com>
Mon, 9 Mar 2026 12:15:05 +0000 (20:15 +0800)
committerNathan Chancellor <nathan@kernel.org>
Mon, 9 Mar 2026 20:43:10 +0000 (13:43 -0700)
commit3b4a3a00de8770f3a60c1fa483921ce37415132d
treefff7ce216e38669bc432d0b4a6599fe75bcc9aca
parenta76e30c2479ce6ffa2aa6c8a8462897afc82bc90
scripts: kconfig: merge_config.sh: fix unexpected operator warning

Fix a warning for:

$ ./scripts/kconfig/merge_config.sh .config extra.config
Using .config as base
Merging extra.config
./scripts/kconfig/merge_config.sh: 384: [: false: unexpected operator

The shellcheck report is also attached:

if [ "$STRICT" == "true" ] && [ "$STRICT_MODE_VIOLATED" == "true" ]; then
               ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.
                                                        ^-- SC3014 (warning): In POSIX sh, == in place of = is undefined.

Fixes: dfc97e1c5da5 ("scripts: kconfig: merge_config.sh: use awk in checks too")
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Reviewed-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Link: https://patch.msgid.link/20260309121505.40454-1-o451686892@gmail.com
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
scripts/kconfig/merge_config.sh