diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-16 11:43:58 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-16 11:43:58 +0100 |
| commit | 089875ac1f14077caf8dccfdddefd2b48849b416 (patch) | |
| tree | b8b902fe02d7cda0818dec483933b8ee5294ed27 | |
| parent | 2dc01a93b94d5bda83391534b3d49f24bbc1de9b (diff) | |
mk: error handling on command -v
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rwxr-xr-x | mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
