summaryrefslogtreecommitdiff
path: root/script/build/grub
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2023-12-16 07:56:26 +0000
committerLeah Rowe <leah@libreboot.org>2023-12-16 07:56:26 +0000
commit1eb4df6748f94a08d44c623a56417199b99b371d (patch)
treee45f8b519cfe1e22dda8ef18763f8ae3546c477f /script/build/grub
parent54ca5f24d20531ac728a9475a94912f0a08f29f7 (diff)
fix several shellcheck warnings
lbmk didn't quote certain arguments in commands, or used ! -z instead of -n, things like that. simple fixes. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'script/build/grub')
-rwxr-xr-xscript/build/grub2
1 files changed, 1 insertions, 1 deletions
diff --git a/script/build/grub b/script/build/grub
index 5fa47c00..dc489838 100755
--- a/script/build/grub
+++ b/script/build/grub
@@ -45,7 +45,7 @@ build_keymap_configs()
{
for keylayoutfile in "${grubcfgsdir}/keymap/"*.gkb; do
[ -f "${keylayoutfile}" ] || continue
- keymap="${keylayoutfile##${grubcfgsdir}/keymap/}"
+ keymap="${keylayoutfile##"${grubcfgsdir}/keymap/"}"
keymap="${keymap%.gkb}"
printf "keymap %s\n" "${keymap}" > \
"${elfdir}/keymap_${keymap}.cfg" || err "!insert keymap"