Skip to content

Commit

Permalink
feat: more permissive file modes
Browse files Browse the repository at this point in the history
  • Loading branch information
pd93 committed Feb 22, 2024
1 parent 3df49ab commit becd836
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion taskfile/taskfile.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,10 @@ func Exists(path string) (string, error) {
if err != nil {
return "", err
}
if fi.Mode().IsRegular() {
if fi.Mode().IsRegular() ||
fi.Mode()&os.ModeDevice != 0 ||
fi.Mode()&os.ModeTemporary != 0 ||
fi.Mode()&os.ModeNamedPipe != 0 {
return filepath.Abs(path)
}

Expand Down

0 comments on commit becd836

Please sign in to comment.