mk: error handling on command -v

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-16 11:43:58 +01:00
parent 2dc01a93b9
commit 089875ac1f
+2 -2
View File
@@ -35,8 +35,8 @@ err()
(
mk="$0"
[ "${mk##*/}" = "$mk" ] && \
mk="`command -v "$mk"`"
[ "${mk##*/}" != "$mk" ] || \
mk="$(x_ command -v "$mk")" || exit 1
mk="$(x_ findpath "$mk")" || exit 1
xbmkpwd="$(x_ dirname "$mk")" || exit 1