Skip to content

Commit 37cd540

Browse files
authored
Merge pull request #568 from Meallia/remove-openssh-version-dependency
Remove dependency on openssh >= 9.2
2 parents 57730f9 + c73d677 commit 37cd540

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,7 @@ main() {
841841
842842
sshSettings=$(ssh "${sshArgs[@]}" -G "${sshConnection}")
843843
sshUser=$(echo "$sshSettings" | awk '/^user / { print $2 }')
844-
sshHost=$(echo "$sshSettings" | awk '/^host / { print $2 }')
844+
sshHost="${sshConnection//*@/}"
845845
846846
uploadSshKey
847847

0 commit comments

Comments
 (0)