mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-10-04 08:27:30 +03:00
make sure envPassword is always defined
This commit is contained in:
parent
c60bbcf690
commit
d1d2605162
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user