Fixed undef variables problems in ssh_config.erb

This commit is contained in:
Phil Friderici 2013-10-16 12:44:31 +02:00
parent 23eab804a2
commit 376b8738fa

View File

@ -50,13 +50,13 @@ Host *
# to the original X11 display. As virtually no X11 client supports the untrusted
# mode correctly we set this to yes.
ForwardX11Trusted yes
<% if @ssh_config_forward_agent -%>
<% if @ssh_config_forward_agent != nil -%>
ForwardAgent <%= @ssh_config_forward_agent %>
<% end -%>
<% if @ssh_config_forward_x11 -%>
<% if @ssh_config_forward_x11 != nil -%>
ForwardX11 <%= @ssh_config_forward_x11 %>
<% end -%>
<% if @ssh_config_server_alive_interval -%>
<% if @ssh_config_server_alive_interval != nil -%>
ServerAliveInterval <%= @ssh_config_server_alive_interval %>
<% end -%>
# Send locale-related environment variables