Skip to content

Commit

Permalink
hotfix: self update (#17)
Browse files Browse the repository at this point in the history
* hotfix: fix self update

* bump: changelog
  • Loading branch information
fajrifernanda authored Apr 14, 2020
1 parent c1ec685 commit d7a45a5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
#Fer

<a name="v1.5.4"></a>
## [v1.5.4] - 2020-04-14
### Fixes
- fix self update


<a name="v1.5.3"></a>
## [v1.5.3] - 2020-04-14
### Fixes
- fix self updater
- self update not working ([#15](https://github.com/kumparan/fer/issues/15))


<a name="v1.5.2"></a>
Expand Down Expand Up @@ -78,7 +84,8 @@
- db migrationfile generator ([#3](https://github.com/kumparan/fer/issues/3))


[Unreleased]: https://github.com/kumparan/fer/compare/v1.5.3...HEAD
[Unreleased]: https://github.com/kumparan/fer/compare/v1.5.4...HEAD
[v1.5.4]: https://github.com/kumparan/fer/compare/v1.5.3...v1.5.4
[v1.5.3]: https://github.com/kumparan/fer/compare/v1.5.2...v1.5.3
[v1.5.2]: https://github.com/kumparan/fer/compare/v1.5.1...v1.5.2
[v1.5.1]: https://github.com/kumparan/fer/compare/v1.5.0...v1.5.1
Expand Down
2 changes: 1 addition & 1 deletion config/version.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package config

// Version define version of fer
const Version = "v1.5.3"
const Version = "v1.5.4"
5 changes: 4 additions & 1 deletion console/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ var updateCmd = &cobra.Command{
}

func updateVersion(cmd *cobra.Command, args []string) {
updateCommand := exec.Command("bash", "GO111MODULE=on", "go", "get", "github.com/kumparan/fer@latest")
updateCommand := exec.Command("go", "get", "github.com/kumparan/fer@latest")
updateCommand.Env = append(os.Environ(),
"GO111MODULE=on",
)
PrintInfo("Updating fer...")
err := updateCommand.Run()
if err != nil {
Expand Down

0 comments on commit d7a45a5

Please sign in to comment.