Skip to content

Commit

Permalink
Make sure to account if compliance-masonry path is in a subdirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
redhatrises committed Jun 18, 2018
1 parent 80a4e06 commit f800fa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/compliance-masonry/compliance-masonry.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ func main() {
binary = "masonry"
}

prog, err := filepath.Abs(filepath.Join(binary))
basepath := filepath.Dir(os.Args[0])
prog, err := filepath.Abs(filepath.Join(basepath, binary))
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit f800fa3

Please sign in to comment.