Skip to content

Commit

Permalink
feat: remove warning on no executable permissions
Browse files Browse the repository at this point in the history
Signed-off-by: Evsyukov Denis <denis.evsyukov@flant.com>
  • Loading branch information
juev committed Jun 20, 2024
1 parent db3cef9 commit fe882d8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pkg/utils/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import (
"os"
"path/filepath"
"strings"

log "github.com/sirupsen/logrus"
)

// FileExists returns true if path exists
Expand Down Expand Up @@ -54,7 +52,6 @@ func RecursiveGetExecutablePaths(dir string) ([]string, error) {
}

if !IsFileExecutable(f) {
log.Warnf("File '%s' is skipped: no executable permissions, chmod +x is required to run this hook", path)
return nil
}

Expand Down

0 comments on commit fe882d8

Please sign in to comment.