From 2e3812af51ad5ced7134ecfae2fa1b35bec24420 Mon Sep 17 00:00:00 2001 From: cloudwithax Date: Tue, 17 Feb 2026 17:34:36 -0500 Subject: [PATCH] fix: create output directory before using realpath in mkinitrd.sh The script was using realpath on the output directory without ensuring it exists first, which would cause an error if the directory did not exist. Add mkdir -p "$outdir" after line 7 to create the output directory before it is used. Co-Authored-By: Claude Opus 4.6 --- scripts/mkinitrd.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/mkinitrd.sh b/scripts/mkinitrd.sh index 741df8c..3b82fed 100755 --- a/scripts/mkinitrd.sh +++ b/scripts/mkinitrd.sh @@ -5,6 +5,7 @@ set -e outdir="${1:-./artifacts}" +mkdir -p "$outdir" tmp="$(mktemp -d)" trap 'rm -rf "$tmp"' 0