Ensure last line from extracting the SSH_AUTH_SOCK is not nil
This commit is contained in:
parent
7403835511
commit
9b48684226
@ -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 == ""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user