summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-16 11:43:58 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-16 11:43:58 +0100
commit089875ac1f14077caf8dccfdddefd2b48849b416 (patch)
treeb8b902fe02d7cda0818dec483933b8ee5294ed27
parent2dc01a93b94d5bda83391534b3d49f24bbc1de9b (diff)
mk: error handling on command -v
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk b/mk
index 51553a7c..d6ced957 100755
--- a/mk
+++ b/mk
@@ -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