mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 04:19:41 -08:00
fix: *env.args.Shell not set in getShellName(cache never used)
*env.args.Shell was never set in getShellName.
This commit is contained in:
parent
b4d23a4716
commit
8c812812ee
|
@ -233,8 +233,9 @@ func (env *environment) getShellName() string {
|
|||
if err != nil {
|
||||
return unknown
|
||||
}
|
||||
shell := strings.Replace(name, ".exe", "", 1)
|
||||
return strings.Trim(shell, " ")
|
||||
// Cache the shell value to speed things up.
|
||||
*env.args.Shell = strings.Trim(strings.Replace(name, ".exe", "", 1), " ")
|
||||
return *env.args.Shell
|
||||
}
|
||||
|
||||
func (env *environment) doGet(url string) ([]byte, error) {
|
||||
|
|
Loading…
Reference in a new issue