// AddToSystemPath Add the specified node to the system PATH variable
AddToSystemPath Add the specified node to the system PATH variable
// AddToSystemPath Add the specified node to the system PATH variable
func AddToSystemPath(node string) error {
	link := filepath.Join("/usr/local/bin", filepath.Base(node))
	exists, err := io.Exists(link)
	if err != nil {
		return err
	}
	if exists {
		err = os.Remove(link)
	}
	if err == nil {
		err = os.Symlink(node, link)
	}
	return err
}
func AddToSystemPath ( node string ) error { link := filepath . Join ( " " , filepath . Base ( node ) ) exists , err := io . Exists ( link ) if err != nil { return err } if exists { err = os . Remove ( link ) } if err == nil { err = os . Symlink ( node , link ) } return err }
AddToSystemPath Add the specified node to the system PATH variable
AddToSystemPath Add the specified node to the system PATH variable