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() main()
{ {
cmd="" cmd="${1-}"
if [ $# -gt 0 ]; then [ $# -gt 0 ] && shift 1
cmd="$1"
shift 1
fi
if ! xeq main "$cmd" $xbcommands; then if ! xeq main "$cmd" $xbcommands; then
return 0 return 0