From 6583b436f0293ee83c9f328dfba02c5b2472867e Mon Sep 17 00:00:00 2001 From: Fierelier Date: Mon, 26 Sep 2022 11:08:12 +0200 Subject: [PATCH] Add "set -e" to chroot-scripts for better error-handling --- mods/XMousePasteBlock/data/chroot | 2 +- mods/dev-remove/data/chroot | 1 + mods/ksuperkey/data/chroot | 2 +- mods/live-installer/data/chroot | 2 ++ mods/seamonkey/data/chroot | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mods/XMousePasteBlock/data/chroot b/mods/XMousePasteBlock/data/chroot index 2b70081..74fe093 100755 --- a/mods/XMousePasteBlock/data/chroot +++ b/mods/XMousePasteBlock/data/chroot @@ -1,5 +1,5 @@ #!/bin/bash -set +e +set -e if [[ -f "/usr/local/bin/xmousepasteblock" ]]; then exit fi diff --git a/mods/dev-remove/data/chroot b/mods/dev-remove/data/chroot index d4867fe..d50e3fe 100755 --- a/mods/dev-remove/data/chroot +++ b/mods/dev-remove/data/chroot @@ -1,3 +1,4 @@ #!/bin/bash +set -e apt -y remove build-essential git pkg-config *-dev apt -y autoremove diff --git a/mods/ksuperkey/data/chroot b/mods/ksuperkey/data/chroot index aa29554..7f28d9d 100755 --- a/mods/ksuperkey/data/chroot +++ b/mods/ksuperkey/data/chroot @@ -1,5 +1,5 @@ #!/bin/bash -set +e +set -e if [[ -f "/usr/local/bin/ksuperkey" ]]; then exit fi diff --git a/mods/live-installer/data/chroot b/mods/live-installer/data/chroot index b465e31..c2cb0b1 100755 --- a/mods/live-installer/data/chroot +++ b/mods/live-installer/data/chroot @@ -1 +1,3 @@ +#!/bin/bash +set -e apt install -y --download-only cryptsetup cryptsetup-initramfs \ No newline at end of file diff --git a/mods/seamonkey/data/chroot b/mods/seamonkey/data/chroot index ec1c22a..137c09d 100755 --- a/mods/seamonkey/data/chroot +++ b/mods/seamonkey/data/chroot @@ -1,4 +1,5 @@ #!/bin/bash +set -e echo "deb http://downloads.sourceforge.net/project/ubuntuzilla/mozilla/apt all main" >>"/etc/apt/sources.list" apt -y install dirmngr apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2667CA5C