Skip to content

Commit

Permalink
fix: bug cli
Browse files Browse the repository at this point in the history
  • Loading branch information
azukaar committed Aug 3, 2019
1 parent d156c7a commit db07638
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
1 change: 0 additions & 1 deletion plugins/provider-http/resolveDependencyLocation.gs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if(name.split(':').length > 1) {
Dependency.version = version
} else {
Dependency.url = 'http://' + name
Dependency.name = Dependency.name.replace(/\//g, "-")
}

Dependency;
1 change: 0 additions & 1 deletion plugins/provider-https/resolveDependencyLocation.gs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ if(name.split(':').length > 1) {
Dependency.version = version
} else {
Dependency.url = 'https://' + name
Dependency.name = Dependency.name.replace(/\//g, "-")
}

Dependency;
Empty file.
8 changes: 6 additions & 2 deletions src/index.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,18 @@ func executeFile(path string, args Arguments) {
if err != nil {
ui.Error("File execution failed")
ui.Error(err)
os.Exit(1)
Exit(1)
}
}

func binFile(name string, args []string) {
path := utils.Path("./.bin/" + name)
realPath, _ := filepath.EvalSymlinks(path)
utils.ExecCommand(realPath, args)
err := utils.ExecCommand(realPath, args)
if err != nil {
ui.Error(err)
Exit(1)
}
}

func Exit(code int) {
Expand Down

0 comments on commit db07638

Please sign in to comment.