mk: simplified command check

Signed-off-by: Leah Rowe <leah@libreboot.org>
This commit is contained in:
Leah Rowe
2026-09-10 19:43:28 +01:00
parent 61ab5723df
commit 86781a5881
+2 -5
View File
@@ -27,11 +27,8 @@ cd "$xbcddir" || exit 1
main()
{
cmd=""
if [ $# -gt 0 ]; then
cmd="$1"
shift 1
fi
cmd="${1-}"
[ $# -gt 0 ] && shift 1
if ! xeq main "$cmd" $xbcommands; then
return 0