Skip to content

Commit

Permalink
Merge pull request #23 from rightscale/actually_update_check_automati…
Browse files Browse the repository at this point in the history
…cally

Actually check for any updates if update.check is set to true
  • Loading branch information
douglaswth authored May 21, 2020
2 parents e901dfe + 1005538 commit 069a7f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/fpt/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v1.1.2 / 2020-05-21
-------------------
* Actually check for any updates if `update.check` is set to `true`

v1.1.1 / 2020-05-20
-------------------
* Clean up JSON output and output files so they are more readable without escaped `<`, `>`, and `&` characters
Expand Down
5 changes: 5 additions & 0 deletions cmd/fpt/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ func main() {
}
client = policy.NewClient(acct.Host, uint(acct.ID), ts, *debug)
}

if config.Config.GetBool("update.check") && !strings.HasPrefix(command, "update") {
defer UpdateCheck(VV, os.Stderr)
}

switch command {
case upCmd.FullCommand():
files, err := walkPaths(*upFiles)
Expand Down

0 comments on commit 069a7f1

Please sign in to comment.