Closed hth2 closed 6 years ago
Write what release/commit are you using.
edit: I downloaded https://github.com/pressly/sup/releases/download/v0.5.1/sup-linux64
Currently it is:
$ sup -v
0.5
At line 284 there is: confHosts, err := sshconfig.ParseSSHConfig(resolvePath(sshConfig))
confHosts will be of type []*SSHHost
, as we can see here if there is not IdentityFile on ssh config file, it will not be initialitated, so, at line 304 when the program calls to resolvePath()
passing conf.IdentityFile
as argument; there is a panic at 191, because we are doing:
if path[:2] == "~/" {
That is a error, because the length of path will be 0.
@VojtechVitek see that.
@hanthethanh you could try to go to append at the beginning of the function resolvePath
and add:
if len(path) == 0 { return "" }
or:
if path == "" { return "" }
It should work, I guess. I can not ensure it; this is my first day watching this project and I have no idea. xD
thank you, it works now.
Thanks for the fix @palvarezcordoba 👍
Hello,
when I tried the --sshconfig option I got an error as below:
Am I missing something, or this is a bug?
btw,
sup --help
show this:Note that there are only 1 hyphen. I tried with both 1 & 2 hyphens and the result is the same.