Skip to content

Commit

Permalink
fix: use ssh args for getting connection settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mibmo authored and mergify[bot] committed Sep 25, 2023
1 parent 17efd86 commit bb058eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ if [[ -n ${ssh_private_key_file-} ]]; then
ssh_copy_id_args+=(-f)
fi

ssh_settings=$(ssh -G "${ssh_connection}")
ssh_settings=$(ssh "${ssh_args[@]}" -G "${ssh_connection}")
ssh_host=$(echo "$ssh_settings" | awk '/^hostname / { print $2 }')
ssh_port=$(echo "$ssh_settings" | awk '/^port / { print $2 }')

Expand Down

0 comments on commit bb058eb

Please # to comment.