Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Commit

Permalink
fix fugu run /bin/bash
Browse files Browse the repository at this point in the history
  • Loading branch information
mattes committed Sep 15, 2014
1 parent 0320a82 commit abbd96d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion cli/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/mattes/fugu/file"
"io/ioutil"
"os"
"path"
"sort"
)

Expand Down Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion version/version.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
package version

const Version = "0.1.1"
const Version = "0.1.2"

0 comments on commit abbd96d

Please sign in to comment.