diff --git a/client/lib/lib.go b/client/lib/lib.go index a0587c2..ddbcbd9 100644 --- a/client/lib/lib.go +++ b/client/lib/lib.go @@ -529,6 +529,9 @@ func parseBashHistory(homedir string) ([]string, error) { } func readFileToArray(path string) ([]string, error) { + if _, err := os.Stat(path); errors.Is(err, os.ErrNotExist) { + return []string{}, nil + } file, err := os.Open(path) if err != nil { return nil, err