only enable envPassword if it is actually set

This commit is contained in:
Jörg Thalheim 2024-09-16 11:02:53 +02:00 committed by mergify[bot]
parent 763732541f
commit e1616654ce

View File

@ -29,7 +29,7 @@ else
fi
postKexecSshPort=22
buildOnRemote=n
envPassword=
envPassword=n
sshKeyDir=$(mktemp -d)
trap 'rm -rf "$sshKeyDir"' EXIT
@ -317,7 +317,7 @@ uploadSshKey() {
step Uploading install SSH keys
until
if [[ -n ${envPassword} ]]; then
if [[ ${envPassword} == y ]]; then
sshpass -e \
ssh-copy-id \
-i "$sshKeyDir"/nixos-anywhere.pub \