From abbd96df9a4800a379a1edb4bb5792025e861c80 Mon Sep 17 00:00:00 2001 From: mattes Date: Mon, 15 Sep 2014 17:59:55 +0200 Subject: [PATCH] fix fugu run /bin/bash --- cli/helper.go | 6 +++++- version/version.go | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/cli/helper.go b/cli/helper.go index 58cec89..45e3ea7 100644 --- a/cli/helper.go +++ b/cli/helper.go @@ -6,6 +6,7 @@ import ( "github.com/mattes/fugu/file" "io/ioutil" "os" + "path" "sort" ) @@ -65,7 +66,10 @@ func BuildRunArgs(conf *[]config.Value) []string { func FindFugufile(filepath string, searchFilePaths []string) (fugufilePath string, viaFugufilePath bool) { // does the file exist? if _, err := os.Stat(filepath); err == nil { - return filepath, false + ext := path.Ext(filepath) + if ext == "yml" || ext == "yaml" { + return filepath, false + } } // filepath does not exist. diff --git a/version/version.go b/version/version.go index ec1cdb3..8d43885 100644 --- a/version/version.go +++ b/version/version.go @@ -1,3 +1,3 @@ package version -const Version = "0.1.1" +const Version = "0.1.2"