make sure envPassword is always defined

This commit is contained in:
Jörg Thalheim 2024-09-10 06:58:13 +02:00 committed by mergify[bot]
parent c60bbcf690
commit d1d2605162

View File

@ -92,6 +92,7 @@ else
fi
postKexecSshPort=22
buildOnRemote=n
envPassword=
declare -A diskEncryptionKeys
declare -a nixCopyOptions
@ -341,7 +342,7 @@ uploadSshKey() {
step Uploading install SSH keys
until
if [[ -n ${envPassword-} ]]; then
if [[ -n ${envPassword} ]]; then
sshpass -e \
ssh-copy-id \
-i "$sshKeyDir"/nixos-anywhere.pub \