espressif / esp-idf

Espressif IoT Development Framework. Official development framework for Espressif SoCs.
Apache License 2.0
13.72k stars 7.3k forks source link

This script should be sourced, not executed: (IDFGH-7831) #9360

Closed zghnx closed 2 years ago

zghnx commented 2 years ago

微信截图_20220715200451

igrr commented 2 years ago

@zghnx That suggestion means that you should run the script like this:

. ./export.sh

instead of

./export.sh

This is required because the script is supposed to update the environment variables in your shell. That is only possible when "sourcing" the script rather than executing. More on this here.