mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-10-04 00:18:58 +03:00
only enable envPassword if it is actually set
This commit is contained in:
parent
763732541f
commit
e1616654ce
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user