summaryrefslogtreecommitdiff
path: root/resources/scripts/build/boot/roms_helper
diff options
context:
space:
mode:
Diffstat (limited to 'resources/scripts/build/boot/roms_helper')
-rwxr-xr-xresources/scripts/build/boot/roms_helper6
1 files changed, 2 insertions, 4 deletions
diff --git a/resources/scripts/build/boot/roms_helper b/resources/scripts/build/boot/roms_helper
index 06820b43..40c0f394 100755
--- a/resources/scripts/build/boot/roms_helper
+++ b/resources/scripts/build/boot/roms_helper
@@ -230,10 +230,8 @@ rm -f "${romdir}"/*
if [ "${payload_grub}" = "y" ] || [ "${payload_seabios_withgrub}" = "y" ]; then
if [ -f "payload/grub/grub_usqwerty.cfg" ]; then
- grubrefchecksum="$(sha1sum resources/grub/config/grub.cfg)"
- grubrefchecksum="${grubrefchecksum% resources/grub/config/grub.cfg}"
- grubbuildchecksum="$(sha1sum payload/grub/grub_usqwerty.cfg)"
- grubbuildchecksum="${grubbuildchecksum% payload/grub/grub_usqwerty.cfg}"
+ grubrefchecksum="$(sha1sum resources/grub/config/grub.cfg | awk '{print $1}')"
+ grubbuildchecksum="$(sha1sum payload/grub/grub_usqwerty.cfg | awk '{print $1}')"
if [ "${grubrefchecksum}" != "${grubbuildchecksum}" ]; then
rm -Rf payload/grub/
printf "Changes detected to GRUB. Re-building now:\n"