From ff75c4f3b5e03cb7b066ad14c3d02c09a3636fe8 Mon Sep 17 00:00:00 2001 From: Adam Simpkins Date: Sun, 17 Jul 2022 11:18:44 -0700 Subject: [PATCH] Tools: resolve symlinks in IDF_PATH when installing Use `pwd -P` to resolve any symlinks in the current directory path. This makes the behavior in the shell script similar to the idf_tools.py code, which calls `os.path.realpath()`. Without this, multiple entries can get created in the `idfInstalled` dictionary in idf-env.json, and the installed targets and features are not fully present in all entries. This results in a broken installation, where `export.sh` cannot set up the environment correctly afterwards. --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 6c48b25482..ad8547af21 100755 --- a/install.sh +++ b/install.sh @@ -4,7 +4,7 @@ set -e set -u basedir=$(dirname "$0") -IDF_PATH=$(cd "${basedir}"; pwd) +IDF_PATH=$(cd "${basedir}"; pwd -P) export IDF_PATH echo "Detecting the Python interpreter"