Skip to content

Commit

Permalink
Merge pull request #153 from cz4rny/dont-fail-on-chmod-mvnw
Browse files Browse the repository at this point in the history
Newline at end of warnings
  • Loading branch information
Daniel Mikusa authored Jun 15, 2022
2 parents d29bf67 + 12a5083 commit cead6fb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions maven/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,11 @@ func (b Build) Build(context libcnb.BuildContext) (libcnb.BuildResult, error) {
return libcnb.BuildResult{}, fmt.Errorf("unable to stat %s\n%w", command, err)
} else {
if err := os.Chmod(command, 0755); err != nil {
fmt.Printf("WARNING: unable to chmod %s:\n%s", command, err)
b.Logger.Bodyf("WARNING: unable to chmod %s:\n%s", command, err)
}

if err = b.CleanMvnWrapper(command); err != nil {
fmt.Printf("WARNING: unable to clean mvnw file: %s\n%s", command, err)
b.Logger.Bodyf("WARNING: unable to clean mvnw file: %s\n%s", command, err)
}
}
}
Expand Down

0 comments on commit cead6fb

Please sign in to comment.