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 <noreply@anthropic.com>
This commit is contained in:
cloudwithax 2026-02-17 17:34:36 -05:00
parent f0678f1e5b
commit 2e3812af51
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@
set -e set -e
outdir="${1:-./artifacts}" outdir="${1:-./artifacts}"
mkdir -p "$outdir"
tmp="$(mktemp -d)" tmp="$(mktemp -d)"
trap 'rm -rf "$tmp"' 0 trap 'rm -rf "$tmp"' 0