Skip to content

Commit

Permalink
only enable envPassword if it is actually set
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Sep 16, 2024
1 parent 191507d commit 636a468
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ else
fi
postKexecSshPort=22
buildOnRemote=n
envPassword=
envPassword=n

sshKeyDir=$(mktemp -d)
trap 'rm -rf "$sshKeyDir"' EXIT
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 636a468

Please sign in to comment.