From 96f7f713c51cb0699f424d13c5bac94687b373da Mon Sep 17 00:00:00 2001 From: Wynn Wolf Arbor Date: Mon, 23 Mar 2020 14:44:01 +0100 Subject: Exit if the kernfrag directory is inaccessible --- kern | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kern b/kern index cef14c3..5d3716d 100755 --- a/kern +++ b/kern @@ -48,6 +48,10 @@ set_kernel() { config_kernel() { host=${1:-$(hostname)} + if test ! -d "$KERNFRAG"; then + errx "No such file or directory: $KERNFRAG" + fi + printf "Starting merge for %s...\n\n" "$host" awk -v prefix="$KERNFRAG/fragments/" '{print prefix $0}' \ -- cgit v1.2.3-2-gb3c3