Fix ReplaceHome implementation
@@ -342,7 +342,12 @@ func ReplaceHome(path string) string {
} else {
userData, err = user.Lookup(homeString[1:])
if err != nil {
+ if messeger != nil {
messenger.Error("Could not find user: ", err)
+ } else {
+ TermMessage("Could not find user: ", err)
+ }
+ return ""
}
}
