Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed Sep 2, 2024
1 parent 84479c3 commit cd69d5f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/path/path.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ import (
fileutil "github.com/projectdiscovery/utils/file"
)

type Config struct {
shellName string
rcFile string
}

func IsSet(path string) bool {
ok, _ := isSet(path)
return ok
Expand Down
5 changes: 5 additions & 0 deletions pkg/path/windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ func write(path string, cur []string) error {
return nil
}

func paths() []string {
configuredPaths, _ := getPathsFromRegistry()
return configuredPaths
}

func getPathsFromRegistry() ([]string, error) {
k, err := registry.OpenKey(registry.CURRENT_USER, `Environment`, registry.QUERY_VALUE)
if err != nil {
Expand Down

0 comments on commit cd69d5f

Please sign in to comment.