Skip to content

Commit

Permalink
chmod
Browse files Browse the repository at this point in the history
Signed-off-by: Gyuho Lee <[email protected]>
  • Loading branch information
gyuho committed Aug 21, 2024
1 parent 038080d commit 169c726
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/process/process.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ func New(commands [][]string, opts ...OpOption) (Process, error) {
if err := bashFile.Chmod(0755); err != nil {
return nil, fmt.Errorf("failed to set executable permission on bash script: %w", err)
}
cmd := exec.Command("chmod", "+x", bashFile.Name())
if err := cmd.Run(); err != nil {
return nil, fmt.Errorf("failed to run chmod +x on bash script: %w", err)
}
}

return &process{
Expand Down

0 comments on commit 169c726

Please sign in to comment.