Skip to content

Commit

Permalink
This was stupid.
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Kluth <[email protected]>
  • Loading branch information
Alexander Kluth committed Aug 1, 2019
1 parent 3a03b30 commit a0e7c44
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ func executeTask(doFile Dofile, taskName string) {

cmd := exec.Command(cmdName, tokens...)

if _, err := os.Stat(cmdName); os.IsNotExist(err) {
fmt.Println()
fmt.Println(Bold(Red("Error: Command")), Bold(cmdName), Bold(Red("does not exist or is not in your $PATH!")))
os.Exit(1)
}
//if _, err := os.Stat(cmdName); os.IsNotExist(err) {
// fmt.Println()
// fmt.Println(Bold(Red("Error: Command")), Bold(cmdName), Bold(Red("does not exist or is not in your $PATH!")))
// os.Exit(1)
//}

if doFile.Tasks[taskName].Output == true {
out, _ := cmd.CombinedOutput()
Expand Down

0 comments on commit a0e7c44

Please sign in to comment.