1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

using lookpath

This commit is contained in:
Carlos Alexandro Becker 2017-01-30 07:53:05 -02:00
parent 3f2eb7c56b
commit dd277451d8
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -33,8 +33,8 @@ func (Pipe) Run(ctx *context.Context) error {
log.Println("No output formats configured, skipping")
return nil
}
cmd := exec.Command("which", "fpm")
if err := cmd.Run(); err != nil {
_, err := exec.LookPath("fpm")
if err != nil {
return ErrNoFPM
}