diff options
author | Francis Rowe <info@gluglug.org.uk> | 2014-11-09 09:54:51 +0000 |
---|---|---|
committer | Francis Rowe <info@gluglug.org.uk> | 2014-11-09 09:54:51 +0000 |
commit | d6b7998acadd9dc087ab44a50bedd1995104ddbc (patch) | |
tree | 087d61d786c54f27d58e58ff4d82d287a4de57c5 /resources/utilities | |
parent | 7193d65809a841147097fb35866a7806f746b0f7 (diff) | |
download | librebootfr-d6b7998acadd9dc087ab44a50bedd1995104ddbc.tar.gz librebootfr-d6b7998acadd9dc087ab44a50bedd1995104ddbc.zip |
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.
Diffstat (limited to 'resources/utilities')
-rwxr-xr-x | resources/utilities/grub-assemble/gen.sh | 2 | ||||
-rwxr-xr-x | resources/utilities/grub-assemble/grub_memdisk_keymap | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/resources/utilities/grub-assemble/gen.sh b/resources/utilities/grub-assemble/gen.sh index 880fa666..fb1896bc 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 98bf3e0b..2ef01131 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 <http://www.gnu.org/licenses/>. # +set -u -e -v + for keymap in $(ls keymap/original) do printf "/boot/grub/layouts/$keymap.gkb=keymap/$keymap.gkb " |