mirror of
https://github.com/veeso/termscp.git
synced 2026-04-14 06:01:32 -07:00
Restored version from env
This commit is contained in:
@@ -118,7 +118,7 @@ impl AuthActivity {
|
|||||||
if client.get_check_for_updates() {
|
if client.get_check_for_updates() {
|
||||||
debug!("Check for updates is enabled");
|
debug!("Check for updates is enabled");
|
||||||
// Send request
|
// Send request
|
||||||
match git::check_for_updates("0.5.0") {
|
match git::check_for_updates(env!("CARGO_PKG_VERSION")) {
|
||||||
Ok(github_tag) => github_tag,
|
Ok(github_tag) => github_tag,
|
||||||
Err(err) => {
|
Err(err) => {
|
||||||
// Report error
|
// Report error
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ impl AuthActivity {
|
|||||||
.with_spans(vec![
|
.with_spans(vec![
|
||||||
TextSpan::from("termscp "),
|
TextSpan::from("termscp "),
|
||||||
TextSpanBuilder::new(version).underlined().bold().build(),
|
TextSpanBuilder::new(version).underlined().bold().build(),
|
||||||
TextSpan::from(" is now available! View release notes with <CTRL+R>"),
|
TextSpan::from(" is NOW available! Get it from <https://veeso.github.io/termscp/>; view release notes with <CTRL+R>"),
|
||||||
])
|
])
|
||||||
.build(),
|
.build(),
|
||||||
)),
|
)),
|
||||||
|
|||||||
Reference in New Issue
Block a user