mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
using lookpath
This commit is contained in:
parent
3f2eb7c56b
commit
dd277451d8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user