cyjake / ssh-config

📟 SSH config parser and stringifier
MIT License
80 stars 20 forks source link

The `lastLine` variable is undefined, when a new record is appended into `new SSHConfig`. #16

Closed hipoyang closed 5 years ago

hipoyang commented 5 years ago

https://github.com/cyjake/ssh-config/blob/148c0a5a1352656fe3a4288367daa27eaf133ac5/index.js#L107

I make a new SSHConfig instance, and would like to append new record to it. But it's not working, since lastLine.config goes runtime error.

cyjake commented 5 years ago

fixed with v1.1.6