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:
parent
f0678f1e5b
commit
2e3812af51
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue