From ec7be2ffd91c7d28085a8d2eedb8db97d254616a Mon Sep 17 00:00:00 2001 From: morde Date: Fri, 23 Aug 2024 11:04:13 +0300 Subject: [PATCH] LETS FUCKING GOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO --- src/handlers/install_handler.rs | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/handlers/install_handler.rs b/src/handlers/install_handler.rs index 8e02214..af55c1d 100644 --- a/src/handlers/install_handler.rs +++ b/src/handlers/install_handler.rs @@ -229,25 +229,6 @@ async fn handle_rollback(config: &Config) -> Result<()> { fs::remove_dir_all(oldest_path).await?; } - println!("Is exist? {}", env::current_dir()?.join("nightly/bob.json").exists()); - // handle this for older installations of nightly instead of introducing breaking changes - cfg_if::cfg_if! { - if #[cfg(unix)] { - use std::os::unix::prelude::PermissionsExt; - - let platform = helpers::get_platform_name(&None); - let file = &format!("nightly/{platform}/bin/nvim"); - let mut perms = fs::metadata(file).await?.permissions(); - let octal_perms = format!("{:o}", perms.mode()); - - if octal_perms == "100111" { - perms.set_mode(0o551); - fs::set_permissions(file, perms).await?; - } - - } - } - let nightly_file = fs::read_to_string("nightly/bob.json").await?; let mut json_struct: UpstreamVersion = serde_json::from_str(&nightly_file)?; let id: String = json_struct