mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
16 lines
221 B
Go
16 lines
221 B
Go
package vcs
|
|
|
|
import (
|
|
"os/user"
|
|
"path/filepath"
|
|
)
|
|
|
|
func getDefaultPublicKeyPath() (path string) {
|
|
u, err := user.Current()
|
|
if err != nil {
|
|
return path
|
|
}
|
|
path = filepath.Join(u.HomeDir, ".ssh", "id_rsa")
|
|
return
|
|
}
|