mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
fix(cli): print error message only once
This commit is contained in:
parent
07906b6a27
commit
217b3c73c4
|
@ -38,7 +38,6 @@ on getting started, have a look at the docs at https://ohmyposh.dev`,
|
||||||
func Execute(version string) {
|
func Execute(version string) {
|
||||||
cliVersion = version
|
cliVersion = version
|
||||||
if err := rootCmd.Execute(); err != nil {
|
if err := rootCmd.Execute(); err != nil {
|
||||||
fmt.Fprintln(os.Stderr, err)
|
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue