Skip to content

Commit

Permalink
Allow any execute bits to count as executable (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
JaredNeil authored Nov 4, 2022
1 parent ff34a81 commit aa0e93d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/core.go
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ func maybeDelegateToWrapper(bazel string) string {

root := findWorkspaceRoot(wd)
wrapper := filepath.Join(root, wrapperPath)
if stat, err := os.Stat(wrapper); err != nil || stat.IsDir() || stat.Mode().Perm()&0001 == 0 {
if stat, err := os.Stat(wrapper); err != nil || stat.IsDir() || stat.Mode().Perm()&0111 == 0 {
return bazel
}

Expand Down

0 comments on commit aa0e93d

Please sign in to comment.