Fix: an error where a directory could not be created when there were multiple decrypt keys

This commit is contained in:
misumisumi 2024-05-07 11:27:16 +09:00 committed by mergify[bot]
parent 5ccebbc4cc
commit fde12bc1f0

View File

@ -62,7 +62,7 @@ while [[ $# -gt 0 ]]; do
echo "Script file '$2' is not executable"
exit 1
fi
mkdir "${tmpdir}/keys"
mkdir -p "${tmpdir}/keys"
"$2" >"${tmpdir}/keys/$keyIdx"
args+=("--disk-encryption-keys" "$1" "${tmpdir}/keys/$keyIdx")
shift