Skip to content

Commit 0347b8f

Browse files
committed
chmod gradlew
1 parent 8c95583 commit 0347b8f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

saturn/pkg/run/java.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ func (s *JavaScaffold) Prepare() *Step {
6161
return fmt.Errorf("os.RemoveAll: %v", err)
6262
}
6363

64+
// Make gradlew executable
65+
gradlewPath := filepath.Join(s.root, "gradlew")
66+
if err := os.Chmod(gradlewPath, 0755); err != nil {
67+
return fmt.Errorf("os.Chmod gradlew: %v", err)
68+
}
69+
6470
log.Ctx(ctx).Debug().Msg("Updating distribution.")
6571
out, err := s.Scaffold.RunCommand(
6672
ctx,

0 commit comments

Comments
 (0)