File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -407,11 +407,13 @@ for path in "${!disk_encryption_keys[@]}"; do
407
407
ssh_ " umask 077; cat > $path " < " ${disk_encryption_keys[$path]} "
408
408
done
409
409
410
- pubkey=$( ssh-keyscan -p " $ssh_port " -t ed25519 " $ssh_host " 2> /dev/null || {
411
- echo " ERROR: failed to retrieve host public key for ${ssh_connection} " >&2
412
- exit 1
413
- })
414
- pubkey=$( echo " $pubkey " | sed -e ' s/^[^ ]* //' | base64 -w0)
410
+ if [[ ${build_on_remote-n} == " y" ]]; then
411
+ pubkey=$( ssh-keyscan -p " $ssh_port " -t ed25519 " $ssh_host " 2> /dev/null || {
412
+ echo " ERROR: failed to retrieve host public key for ${ssh_connection} " >&2
413
+ exit 1
414
+ })
415
+ pubkey=$( echo " $pubkey " | sed -e ' s/^[^ ]* //' | base64 -w0)
416
+ fi
415
417
416
418
if [[ -z ${disko_script-} ]] && [[ ${build_on_remote-n} == " y" ]]; then
417
419
step Building disko script
You can’t perform that action at this time.
0 commit comments