From 765a4c707b12c9f218f96cc8ca90bd26db43171d Mon Sep 17 00:00:00 2001 From: Henry Dollman Date: Sun, 21 Jul 2024 19:20:20 -0400 Subject: [PATCH] update the update scripts --- agent/update.go | 5 ++--- hub/update.go | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/agent/update.go b/agent/update.go index abc1f9b..62b0e43 100644 --- a/agent/update.go +++ b/agent/update.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "log" "os" "strings" @@ -37,7 +36,7 @@ func updateBeszel() { } var binaryPath string - fmt.Printf("Updating from %s to %s...", currentVersion, latest.Version) + fmt.Printf("Updating from %s to %s...\n", currentVersion, latest.Version) binaryPath, err = os.Executable() if err != nil { fmt.Println("Error getting binary path:", err) @@ -48,5 +47,5 @@ func updateBeszel() { fmt.Println("Please try rerunning with sudo. Error:", err) os.Exit(1) } - log.Printf("Successfully updated: %s -> %s\n\n%s", currentVersion, latest.Version, strings.TrimSpace(latest.ReleaseNotes)) + fmt.Printf("Successfully updated to %s\n\n%s\n", latest.Version, strings.TrimSpace(latest.ReleaseNotes)) } diff --git a/hub/update.go b/hub/update.go index 58b17b5..2b361f3 100644 --- a/hub/update.go +++ b/hub/update.go @@ -2,7 +2,6 @@ package main import ( "fmt" - "log" "os" "strings" @@ -38,7 +37,7 @@ func updateBeszel(cmd *cobra.Command, args []string) { } var binaryPath string - fmt.Printf("Updating from %s to %s...", currentVersion, latest.Version) + fmt.Printf("Updating from %s to %s...\n", currentVersion, latest.Version) binaryPath, err = os.Executable() if err != nil { fmt.Println("Error getting binary path:", err) @@ -49,5 +48,5 @@ func updateBeszel(cmd *cobra.Command, args []string) { fmt.Println("Please try rerunning with sudo. Error:", err) os.Exit(1) } - log.Printf("Successfully updated: %s -> %s\n\n%s", currentVersion, latest.Version, strings.TrimSpace(latest.ReleaseNotes)) + fmt.Printf("Successfully updated to %s\n\n%s\n", latest.Version, strings.TrimSpace(latest.ReleaseNotes)) }