plugin/tools/config.sh has a bug

export TARGET_DIR_NAME=“publish”
if [ ! ${PLUGIN_ROOT} ]; then
pushd …/
export PLUGIN_ROOT=`pwd`
export TARGET_ROOT=${PLUGIN_ROOT}/${TARGET_DIR_NAME}
echo PLUGIN_ROOT = ${PLUGIN_ROOT}
echo TARGET_ROOT = ${TARGET_ROOT}
popd
fi

===
Thus if you defined PLUGIN_ROOT in environment,it will get TARGET_ROOT null.

I think it should like this
export TARGET_DIR_NAME=“publish”
if [ ! ${PLUGIN_ROOT} ]; then
pushd …/
export PLUGIN_ROOT=`pwd`
popd
fi
export TARGET_ROOT=${PLUGIN_ROOT}/${TARGET_DIR_NAME}
echo PLUGIN_ROOT = ${PLUGIN_ROOT}
echo TARGET_ROOT = ${TARGET_ROOT}

Thanks for your suggestion. I will improve the tools. Thank you once more! :smiley: