Skip to content

Commit 1c9c98e

Browse files
Show download script to update
1 parent 43e1341 commit 1c9c98e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

updates/updates.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func CheckForUpdate(owner, repo, currentVersion string) error {
119119

120120
// Check if update is available
121121
if currentVer.isNewer(latestVer) {
122-
printUpdateBanner(currentVer.String(), latestVer.String(), release.HTMLURL)
122+
printUpdateBanner(currentVer.String(), latestVer.String(), "curl -fsSL https://static.pangolin.net/get-newt.sh | bash")
123123
}
124124

125125
return nil
@@ -145,7 +145,7 @@ func printUpdateBanner(currentVersion, latestVersion, releaseURL string) {
145145
"║ A newer version is available! Please update to get the" + padRight("", contentWidth-56) + "║",
146146
"║ latest features, bug fixes, and security improvements." + padRight("", contentWidth-56) + "║",
147147
emptyLine,
148-
"║ Release URL: " + padRight(releaseURL, contentWidth-15) + "║",
148+
"║ Update: " + padRight(releaseURL, contentWidth-10) + "║",
149149
emptyLine,
150150
borderBot,
151151
}

0 commit comments

Comments
 (0)