We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85d2dd6 commit 968f592Copy full SHA for 968f592
src/nixos-anywhere.sh
@@ -529,7 +529,7 @@ runDisko() {
529
local diskoScript=$1
530
for path in "${!diskEncryptionKeys[@]}"; do
531
step "Uploading ${diskEncryptionKeys[$path]} to $path"
532
- runSsh "umask 077; cat > $path" <"${diskEncryptionKeys[$path]}"
+ runSsh "umask 077; mkdir -p \"$(dirname "$path")\"; cat > $path" <"${diskEncryptionKeys[$path]}"
533
done
534
if [[ -n ${diskoScript} ]]; then
535
nixCopy --to "ssh://$sshConnection" "$diskoScript"
0 commit comments