Update cli/src/commands/update.rs

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
dal 2025-02-12 12:13:51 -08:00 committed by GitHub
parent 6e51e417b0
commit a787c9ebaf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -101,7 +101,11 @@ impl UpdateCommand {
// Download and verify checksum
let checksum_path = temp_dir.path().join(format!("{}.sha256", package_name));
match self.download_file(&checksum_url, &checksum_path).await {
Ok(_) => println!("✓ Checksum file downloaded"),
Ok(_) => {
println!("✓ Checksum file downloaded");
self.verify_checksum(&package_path, &checksum_path)?;
println!("✓ Checksum verified");
},
Err(e) => {
if env::var("BUSTER_DEV").is_ok() {
println!("Skipping checksum verification in development mode");