From 2dec8b859faf41ddfb4d0d3ace3232701b95ae1e Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 20 Jul 2024 18:19:01 -0700 Subject: [PATCH] Add set -u Signed-off-by: Tommy --- desktop_postinstall.sh | 2 +- install.sh | 2 ++ update_grub.sh | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/desktop_postinstall.sh b/desktop_postinstall.sh index cce15b1..e8ba019 100644 --- a/desktop_postinstall.sh +++ b/desktop_postinstall.sh @@ -15,7 +15,7 @@ # Make sure secureboot is in setup mode before running this -set -e +set -eu # Secure boot enrollment sudo sbctl enroll-keys diff --git a/install.sh b/install.sh index 1b7eab5..5167f1f 100644 --- a/install.sh +++ b/install.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -u + output(){ printf '\e[1;34m%-6s\e[m\n' "${@}" } diff --git a/update_grub.sh b/update_grub.sh index d87d1c6..fd2b4d9 100644 --- a/update_grub.sh +++ b/update_grub.sh @@ -13,7 +13,7 @@ # License for the specific language governing permissions and limitations under # the License. -set -e +set -eu # Install new grub version sudo grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=GRUB --disable-shim-lock