Skip to content

Commit 7abbc15

Browse files
committed
feat: more permissive file modes
1 parent 3df49ab commit 7abbc15

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

taskfile/taskfile.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,10 @@ func Exists(path string) (string, error) {
3535
if err != nil {
3636
return "", err
3737
}
38-
if fi.Mode().IsRegular() {
38+
if fi.Mode().IsRegular() ||
39+
fi.Mode()&os.ModeDevice != 0 ||
40+
fi.Mode()&os.ModeSymlink != 0 ||
41+
fi.Mode()&os.ModeNamedPipe != 0 {
3942
return filepath.Abs(path)
4043
}
4144

0 commit comments

Comments
 (0)