Skip to content

Commit

Permalink
fix(disk-encryption-keys): ensure the target dir exists
Browse files Browse the repository at this point in the history
  • Loading branch information
dudeofawesome authored and mergify[bot] committed Nov 15, 2024
1 parent 85d2dd6 commit 968f592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ runDisko() {
local diskoScript=$1
for path in "${!diskEncryptionKeys[@]}"; do
step "Uploading ${diskEncryptionKeys[$path]} to $path"
runSsh "umask 077; cat > $path" <"${diskEncryptionKeys[$path]}"
runSsh "umask 077; mkdir -p \"$(dirname "$path")\"; cat > $path" <"${diskEncryptionKeys[$path]}"
done
if [[ -n ${diskoScript} ]]; then
nixCopy --to "ssh://$sshConnection" "$diskoScript"
Expand Down

0 comments on commit 968f592

Please sign in to comment.