Skip to content

Commit

Permalink
Remove Exec prefix argument
Browse files Browse the repository at this point in the history
  • Loading branch information
Pixep committed Apr 5, 2019
1 parent 2850931 commit c5aed34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cmd/crowlet/crowlet.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func beforeApp(c *cli.Context) error {
}

if len(c.GlobalString("pre-cmd")) > 1 {
ok := util.Exec(c.GlobalString("pre-cmd"), "pre")
ok := util.Exec(c.GlobalString("pre-cmd"))
if !ok {
log.Fatal("Failed to execute command")
}
Expand All @@ -42,7 +42,7 @@ func beforeApp(c *cli.Context) error {

func afterApp(c *cli.Context) error {
if len(c.GlobalString("post-cmd")) > 1 {
ok := util.Exec(c.GlobalString("post-cmd"), "post")
ok := util.Exec(c.GlobalString("post-cmd"))
if !ok {
log.Fatal("Failed to execute command")
}
Expand Down
2 changes: 1 addition & 1 deletion util/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
)

// Exec runs a system command
func Exec(cmdLine string, prefix string) bool {
func Exec(cmdLine string) bool {
log.Info("Running '", cmdLine, "'...")
cmd := exec.Command(cmdLine)

Expand Down

0 comments on commit c5aed34

Please sign in to comment.