Remove hard-coded incorrect "fish" shell identification.

The lines removed cause the shell to be identified as `fish` if the `__fish_bin_dir`, even when `$SHELL` is explicitly set to something else.

This causes a fish user to get the `fish` env when running a non-fish sub-shell.  All bash scripts that use `docker-machine env` will fail for fish users.

Signed-off-by: Scott M. Smith <scottsmith1@gmail.com>
This commit is contained in:
Scott
2016-09-20 09:28:25 -07:00
committed by Scott M. Smith
parent e1a03348ad
commit f26dda16f6

View File

@@ -22,9 +22,5 @@ func Detect() (string, error) {
return "", ErrUnknownShell
}
if os.Getenv("__fish_bin_dir") != "" {
return "fish", nil
}
return filepath.Base(shell), nil
}