From d6b7998acadd9dc087ab44a50bedd1995104ddbc Mon Sep 17 00:00:00 2001 From: Francis Rowe Date: Sun, 9 Nov 2014 09:54:51 +0000 Subject: Error checking Add set -e -u -v to all scripts. flash, lenovobios_firstflash, lenovobios_secondflash and macbook21_firstflash only have -v set because these are expected to have errors powertop.trisquel6 has nothing added. --- resources/utilities/grub-assemble/gen.sh | 2 ++ resources/utilities/grub-assemble/grub_memdisk_keymap | 2 ++ 2 files changed, 4 insertions(+) (limited to 'resources/utilities') diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh index 880fa66..fb1896b 100755 --- a/resources/utilities/grub-assemble/gen.sh +++ b/resources/utilities/grub-assemble/gen.sh @@ -4,6 +4,8 @@ # notice and this notice are preserved. This file is offered as-is, # without any warranty. +set -u -e -v + # TODO: Fail (and clean up) if GRUB isn't actually built. Error checking. # This is where GRUB is expected to be (outside of the grub-assemble, instead in main checkout) diff --git a/resources/utilities/grub-assemble/grub_memdisk_keymap b/resources/utilities/grub-assemble/grub_memdisk_keymap index 98bf3e0..2ef0113 100755 --- a/resources/utilities/grub-assemble/grub_memdisk_keymap +++ b/resources/utilities/grub-assemble/grub_memdisk_keymap @@ -19,6 +19,8 @@ # along with this program. If not, see . # +set -u -e -v + for keymap in $(ls keymap/original) do printf "/boot/grub/layouts/$keymap.gkb=keymap/$keymap.gkb " -- cgit v1.2.3-54-g00ecf