Update dependencies (#316)
update xdg update survey update go-sdk Co-authored-by: Norwin Roosen <git@nroo.de> Reviewed-on: https://gitea.com/gitea/tea/pulls/316 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: 6543 <6543@obermui.de> Co-Authored-By: Norwin <noerw@noreply.gitea.io> Co-Committed-By: Norwin <noerw@noreply.gitea.io>
This commit is contained in:
8
vendor/github.com/adrg/xdg/utils.go
generated
vendored
8
vendor/github.com/adrg/xdg/utils.go
generated
vendored
@@ -33,6 +33,14 @@ func homeDir() string {
|
||||
return ""
|
||||
}
|
||||
|
||||
func chown(name string, uid, gid int) error {
|
||||
if goOS := runtime.GOOS; goOS == "windows" || goOS == "plan9" {
|
||||
return nil
|
||||
}
|
||||
|
||||
return os.Chown(name, uid, gid)
|
||||
}
|
||||
|
||||
func exists(path string) bool {
|
||||
_, err := os.Stat(path)
|
||||
return err == nil || os.IsExist(err)
|
||||
|
||||
Reference in New Issue
Block a user