bjeanes / ghost

Create, list, delete, and modify /etc/hosts entries with ease...
MIT License
732 stars 44 forks source link

`ghost-ssh list` produces "undefined method `length' for nil:NilClass" #44

Closed ibc closed 11 years ago

ibc commented 11 years ago

I've just installed ghost (Ubuntu 12.10 with Ruby 1.9.3p194) and run ghost-ssh list:

ibc@myhost:~$ ghost-ssh list
/var/lib/gems/1.9.1/gems/ghost-0.3.0/bin/ghost-ssh:80:in `block in <top (required)>': undefined method `length' for nil:NilClass (NoMethodError)
        from /var/lib/gems/1.9.1/gems/ghost-0.3.0/bin/ghost-ssh:80:in `each'
        from /var/lib/gems/1.9.1/gems/ghost-0.3.0/bin/ghost-ssh:80:in `max'
        from /var/lib/gems/1.9.1/gems/ghost-0.3.0/bin/ghost-ssh:80:in `<top (required)>'
        from /usr/local/bin/ghost-ssh:23:in `load'
        from /usr/local/bin/ghost-ssh:23:in `<main>'
bjeanes commented 11 years ago

Duplicate of #40