mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2024-12-28 20:39:40 -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 {
|
if err != nil {
|
||||||
return unknown
|
return unknown
|
||||||
}
|
}
|
||||||
shell := strings.Replace(name, ".exe", "", 1)
|
// Cache the shell value to speed things up.
|
||||||
return strings.Trim(shell, " ")
|
*env.args.Shell = strings.Trim(strings.Replace(name, ".exe", "", 1), " ")
|
||||||
|
return *env.args.Shell
|
||||||
}
|
}
|
||||||
|
|
||||||
func (env *environment) doGet(url string) ([]byte, error) {
|
func (env *environment) doGet(url string) ([]byte, error) {
|
||||||
|
|
Loading…
Reference in a new issue