Fix: tools: Small fix with regards to path issue detection

This commit is contained in:
MDW 2024-01-14 19:18:31 +01:00
parent 2c84f3b46d
commit 8171fe73d1

View file

@ -26,7 +26,7 @@ if [ -z "${0##*.sh}" ] ; then
[ -r "${PROJECT_ROOT}/${codespell_ignore_file}" ] && break
PROJECT_ROOT=$(dirname "${PROJECT_ROOT}")
done
if [ "${PROJECT_ROOT}" == "" ] ; then
if [ "${PROJECT_ROOT}" == "/" ] ; then
echo "Project root not found from '${script}'"
exit 1
fi