From 661b4833130541d9af84a10215da0caebafc3920 Mon Sep 17 00:00:00 2001 From: Tommy Date: Sat, 20 Jul 2024 18:27:34 -0700 Subject: [PATCH] Add set -eu Signed-off-by: Tommy --- generate-kmod-blacklist-aggregate.sh | 2 ++ generate-kmod-blacklist.sh | 2 ++ 2 files changed, 4 insertions(+) diff --git a/generate-kmod-blacklist-aggregate.sh b/generate-kmod-blacklist-aggregate.sh index b43017a..bc5963b 100755 --- a/generate-kmod-blacklist-aggregate.sh +++ b/generate-kmod-blacklist-aggregate.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -eu + output(){ echo -e '\e[36m'"$1"'\e[0m'; } diff --git a/generate-kmod-blacklist.sh b/generate-kmod-blacklist.sh index 78f367f..b5a2ef8 100644 --- a/generate-kmod-blacklist.sh +++ b/generate-kmod-blacklist.sh @@ -14,6 +14,8 @@ # License for the specific language governing permissions and limitations under # the License. +set -eu + # List available modules # shellcheck disable=SC2010 ls -R /lib/modules/"$(uname -r)"/kernel/{drivers,fs,net,sound} | grep "\.ko" | sed 's/.ko.xz//g' | sed 's/.ko.zst//g' > blacklist.txt