feat: add information to the /apple
page for the macOS standalone client user (#915)
Co-authored-by: Kristoffer Dalby <kristoffer@dalby.cc>
This commit is contained in:
parent
527b580f5e
commit
bf87b33292
4 changed files with 218 additions and 107 deletions
2
utils.go
2
utils.go
|
@ -347,7 +347,7 @@ func IsStringInSlice(slice []string, str string) bool {
|
|||
}
|
||||
|
||||
func AbsolutePathFromConfigPath(path string) string {
|
||||
// If a relative path is provided, prefix it with the the directory where
|
||||
// If a relative path is provided, prefix it with the directory where
|
||||
// the config file was found.
|
||||
if (path != "") && !strings.HasPrefix(path, string(os.PathSeparator)) {
|
||||
dir, _ := filepath.Split(viper.ConfigFileUsed())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue