Files
espnow-modem/export.sh
T
2022-05-05 17:51:42 +02:00

18 lines
423 B
Bash

if [[ $_ == $0 ]] && [[ "$1" != "--skip-source-check" ]]
then
echo "export.sh has to be sourced, not run in a subshell"
echo ". export.sh"
exit 1
fi
PROJ_ROOT="$(dirname "$BASH_SOURCE")"
if [[ ! -f "${PROJ_ROOT}/esp-idf/export.sh" ]]
then
echo "esp-idf is missing, please check out all needed submodules!"
echo "git submodule update --init --recursive"
return
fi
. ${PROJ_ROOT}/esp-idf/export.sh