Ensure last line from extracting the SSH_AUTH_SOCK is not nil

This commit is contained in:
sophia 2022-09-21 11:09:56 -04:00
parent 7403835511
commit 9b48684226

View File

@ -645,7 +645,7 @@ module VagrantPlugins
if auth_socket != ""
# Make sure we only read the last line which should be
# the $SSH_AUTH_SOCK env var we printed.
auth_socket = auth_socket.split("\n").last.chomp
auth_socket = auth_socket.split("\n").last.to_s.chomp
end
if auth_socket == ""