From 7215db358fa01577ca5740994b832178b0d2a38a Mon Sep 17 00:00:00 2001 From: Douglas Thrift Date: Wed, 20 May 2020 17:43:32 -0700 Subject: [PATCH 1/2] Actually check for any updates if update.check is set to true --- cmd/fpt/ChangeLog.md | 4 ++++ cmd/fpt/main.go | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/cmd/fpt/ChangeLog.md b/cmd/fpt/ChangeLog.md index 793f5e4..9e78243 100644 --- a/cmd/fpt/ChangeLog.md +++ b/cmd/fpt/ChangeLog.md @@ -1,3 +1,7 @@ +Unreleased Changes +------------------ +* 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 diff --git a/cmd/fpt/main.go b/cmd/fpt/main.go index 9f4a149..feceadc 100644 --- a/cmd/fpt/main.go +++ b/cmd/fpt/main.go @@ -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) From 10055389f4415a28b95b4fa1d917749eb1e6c684 Mon Sep 17 00:00:00 2001 From: Douglas Thrift Date: Wed, 20 May 2020 17:51:07 -0700 Subject: [PATCH 2/2] Might as well release it --- cmd/fpt/ChangeLog.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/fpt/ChangeLog.md b/cmd/fpt/ChangeLog.md index 9e78243..a4d0947 100644 --- a/cmd/fpt/ChangeLog.md +++ b/cmd/fpt/ChangeLog.md @@ -1,5 +1,5 @@ -Unreleased Changes ------------------- +v1.1.2 / 2020-05-21 +------------------- * Actually check for any updates if `update.check` is set to `true` v1.1.1 / 2020-05-20