You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let latest = json["crate"]["max_version"].as_str().unwrap_or("");
137
+
let latest = json["tag_name"].as_str().unwrap_or("")
138
+
.trim_start_matches('v');// Remove 'v' prefix if present
143
139
let current = env!("CARGO_PKG_VERSION");
144
140
if latest != "" && latest != current {
145
141
println!(
146
-
"\x1b[33m🔔 A new version of sync-ctl is available: {latest} (current: {current})\nRun `cargo install syncable-cli --force` to update.\x1b[0m"
142
+
"\x1b[33m🔔 A new version of sync-ctl is available: {latest} (current: {current})\nRun `cargo install --git https://github.com/syncable-dev/syncable-cli --tag v{latest}` to update.\x1b[0m"
0 commit comments