From 49b266eb4248f87d111e9babae86a873300afa03 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 30 Sep 2023 16:14:27 +0100 Subject: build/boot/roms: only do 1 custom kbd/payload/mode -k, -p and -d let you set keymap, payload and displaymode respectively, but the handling for this is buggy when passing multiple arguments. Support only one argument, for simplicity. This is how people use them anyway, and it makes lbmk less buggy. Signed-off-by: Leah Rowe --- include/boot.sh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/boot.sh b/include/boot.sh index c8df74a5..fe058ecb 100755 --- a/include/boot.sh +++ b/include/boot.sh @@ -3,11 +3,12 @@ # SPDX-FileCopyrightText: 2022 Ferass El Hafidi # SPDX-FileCopyrightText: 2023 Leah Rowe +first="" board="" boards="" -displaymodes="" -payloads="" -keyboard_layouts="" +_displaymode="" +_payload="" +_keyboard_layout="" main() { @@ -21,13 +22,13 @@ main() while [ $# -gt 0 ]; do case ${1} in -d) - displaymodes="${2} ${displaymodes}" + _displaymode="${2}" shift ;; -p) - payloads="${2} ${payloads}" + _payload="${2}" shift ;; -k) - keyboard_layouts="${2} ${keyboard_layouts}" + _keyboard_layout="${2}" shift ;; all) first="all" ;; -- cgit v1.2.1