summaryrefslogtreecommitdiff
path: root/include/rom.sh
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2025-09-11 10:17:50 +0100
committerLeah Rowe <leah@libreboot.org>2025-09-11 10:29:59 +0100
commit4999a49de39667b3239fc2010d0e99c958b29417 (patch)
treedfa4897896de0bc0c93c5133052a566b5339c138 /include/rom.sh
parent5cfe54b06d74e6392fc7312c41b5ca299704f7ca (diff)
xbmk: don't use backticks for command substitution
the newer way handles escaped characters better, and it can be nested more easily. it's also more readable. personally, i prefer the old way, because it's more minimalist, but it occurs to me that a lot of people nowadays don't know about backticks, but they do know of the modern way. to make the code more readable, i have modernised it. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/rom.sh')
-rw-r--r--include/rom.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rom.sh b/include/rom.sh
index bd58f974..223a84f3 100644
--- a/include/rom.sh
+++ b/include/rom.sh
@@ -32,8 +32,8 @@ copyps1bios()
mkpayload_grub()
{
- eval "`setvars "" grub_modules grub_install_modules`"
- $dry eval "`setcfg "$grubdata/module/$tree"`"
+ eval "$(setvars "" grub_modules grub_install_modules)"
+ $dry eval "$(setcfg "$grubdata/module/$tree")"
$dry x_ rm -f "$srcdir/grub.elf"; $dry \
x_ "$srcdir/grub-mkstandalone" --grub-mkimage="$srcdir/grub-mkimage" \
-O i386-coreboot -o "$srcdir/grub.elf" -d "${srcdir}/grub-core/" \
@@ -256,7 +256,7 @@ cprom()
newrom="${newrom%.rom}_${tmpnew%.gkb}.rom"
irom="$tmprom"
- [ $# -lt 1 ] || irom="`mktemp || err "!mk irom, $(echo "$@")"`" || err
+ [ $# -lt 1 ] || irom="$(mktemp || err "!mk irom, $(echo "$@")")" || err
[ $# -gt 0 ] && x_ cp "$tmprom" "$irom" && cpcmd="mv"
[ $# -gt 0 ] && [ "${1%.gkb}" != "$1" ] && \