diff --git a/ChangeLog b/ChangeLog index 54880f44f..f5988e08c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,18 @@ +2010-06-29 Colin Watson + + * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e', + to avoid accidents when debugging with 'sh -x'. + * util/grub-mkrescue.in: Likewise. + * util/grub.d/00_header.in: Likewise. + * util/grub.d/10_hurd.in: Likewise. + * util/grub.d/10_kfreebsd.in: Likewise. + * util/grub.d/10_linux.in: Likewise. + * util/grub.d/10_netbsd.in: Likewise. + * util/grub.d/10_windows.in: Likewise. + * util/grub.d/20_linux_xen.in: Likewise. + * util/grub.d/30_os-prober.in: Likewise. + * util/powerpc/ieee1275/grub-mkrescue.in: Likewise. + 2010-06-29 Colin Watson * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the diff --git a/util/grub-mkconfig.in b/util/grub-mkconfig.in index e417b4352..828b54bce 100644 --- a/util/grub-mkconfig.in +++ b/util/grub-mkconfig.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # Generate grub.cfg by inspecting /boot contents. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub-mkrescue.in b/util/grub-mkrescue.in index 36cce31ec..4a16558e4 100644 --- a/util/grub-mkrescue.in +++ b/util/grub-mkrescue.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # Make GRUB rescue image # Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008,2009 Free Software Foundation, Inc. diff --git a/util/grub.d/00_header.in b/util/grub.d/00_header.in index 8186ffd2d..553369e37 100644 --- a/util/grub.d/00_header.in +++ b/util/grub.d/00_header.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/10_hurd.in b/util/grub.d/10_hurd.in index e446f10e8..350eb30a8 100644 --- a/util/grub.d/10_hurd.in +++ b/util/grub.d/10_hurd.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/10_kfreebsd.in b/util/grub.d/10_kfreebsd.in index f63421617..9915abdf1 100644 --- a/util/grub.d/10_kfreebsd.in +++ b/util/grub.d/10_kfreebsd.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 9e1450f51..57bc1eebc 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/10_netbsd.in b/util/grub.d/10_netbsd.in index 7e5fb34ad..1a8c4eb36 100644 --- a/util/grub.d/10_netbsd.in +++ b/util/grub.d/10_netbsd.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/10_windows.in b/util/grub.d/10_windows.in index 7d221eac9..fd068dd2d 100644 --- a/util/grub.d/10_windows.in +++ b/util/grub.d/10_windows.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in index 9a0136a76..8612c96b0 100644 --- a/util/grub.d/20_linux_xen.in +++ b/util/grub.d/20_linux_xen.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009,2010 Free Software Foundation, Inc. diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in index 90e2e3d92..601663dcc 100644 --- a/util/grub.d/30_os-prober.in +++ b/util/grub.d/30_os-prober.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # grub-mkconfig helper script. # Copyright (C) 2006,2007,2008,2009 Free Software Foundation, Inc. diff --git a/util/powerpc/ieee1275/grub-mkrescue.in b/util/powerpc/ieee1275/grub-mkrescue.in index 4ef26f616..aefedff3f 100644 --- a/util/powerpc/ieee1275/grub-mkrescue.in +++ b/util/powerpc/ieee1275/grub-mkrescue.in @@ -1,4 +1,5 @@ -#! /bin/sh -e +#! /bin/sh +set -e # Make GRUB rescue image # Copyright (C) 1999,2000,2001,2002,2003,2004,2005,2006,2007,2008 Free Software Foundation, Inc.