From bdb8c05b2580828fc787378fa45ea4cb1f0b78e9 Mon Sep 17 00:00:00 2001 From: Roland Dobai Date: Wed, 22 Apr 2020 15:29:06 +0200 Subject: [PATCH] CI: Add EOL to sdkconfig.defaults before adding sdkconfig.ci --- tools/ci/build_examples.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/ci/build_examples.sh b/tools/ci/build_examples.sh index 733e55bbf..a62675cbf 100755 --- a/tools/ci/build_examples.sh +++ b/tools/ci/build_examples.sh @@ -125,6 +125,9 @@ build_example () { # If sdkconfig.ci file is present, append it to sdkconfig.defaults, # replacing environment variables if [[ -f "$SDKCONFIG_DEFAULTS_CI" ]]; then + # Make sure that the last line of sdkconfig.defaults is terminated. Otherwise, the first line + # of $SDKCONFIG_DEFAULTS_CI will be joined with the last one of sdkconfig.defaults. + echo >> sdkconfig.defaults cat $SDKCONFIG_DEFAULTS_CI | $IDF_PATH/tools/ci/envsubst.py >> sdkconfig.defaults fi