Skip to content

Commit 636a468

Browse files
committed
only enable envPassword if it is actually set
1 parent 191507d commit 636a468

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ else
2929
fi
3030
postKexecSshPort=22
3131
buildOnRemote=n
32-
envPassword=
32+
envPassword=n
3333

3434
sshKeyDir=$(mktemp -d)
3535
trap 'rm -rf "$sshKeyDir"' EXIT
@@ -317,7 +317,7 @@ uploadSshKey() {
317317

318318
step Uploading install SSH keys
319319
until
320-
if [[ -n ${envPassword} ]]; then
320+
if [[ ${envPassword} == y ]]; then
321321
sshpass -e \
322322
ssh-copy-id \
323323
-i "$sshKeyDir"/nixos-anywhere.pub \

0 commit comments

Comments
 (0)