mk: make xbcddir usage clearer

it's always a directory, so filter it first

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-10 17:47:48 +01:00
parent 1ceeb0ab55
commit bb0221252c
+2 -1
View File
@@ -19,8 +19,9 @@ xbcddir="`readlink -f "$xbarg0" 2>/dev/null`"
if [ -z "$xbcddir" ]; then
xbcddir="`realpath "$xbarg0" 2>/dev/null`"
fi
xbcddir="${xbcddir%/*}"
cd "${xbcddir%/*}" || exit 1
cd "$xbcddir" || exit 1
. "include/lib.sh"
. "include/init.sh"