Skip to content

Commit d1d2605

Browse files
Mic92mergify[bot]
authored andcommitted
make sure envPassword is always defined
1 parent c60bbcf commit d1d2605

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ else
9292
fi
9393
postKexecSshPort=22
9494
buildOnRemote=n
95+
envPassword=
9596

9697
declare -A diskEncryptionKeys
9798
declare -a nixCopyOptions
@@ -341,7 +342,7 @@ uploadSshKey() {
341342

342343
step Uploading install SSH keys
343344
until
344-
if [[ -n ${envPassword-} ]]; then
345+
if [[ -n ${envPassword} ]]; then
345346
sshpass -e \
346347
ssh-copy-id \
347348
-i "$sshKeyDir"/nixos-anywhere.pub \

0 commit comments

Comments
 (0)