summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-10 19:43:28 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-10 19:43:28 +0100
commit86781a58810f8a4a1e124ba52c0c0763949484dc (patch)
tree900b8d46eb30f59119404c7acd270867cdde9675
parent61ab5723df1b9eae9cc5871285e974c75fccb5fa (diff)
mk: simplified command check
Signed-off-by: Leah Rowe <leah@libreboot.org>
-rwxr-xr-xmk7
1 files changed, 2 insertions, 5 deletions
diff --git a/mk b/mk
index 15ecad86..64172170 100755
--- a/mk
+++ b/mk
@@ -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