diff --git a/crates/cli/src/cmd/unuse.rs b/crates/cli/src/cmd/unuse.rs index 971cab1..d29c8ac 100644 --- a/crates/cli/src/cmd/unuse.rs +++ b/crates/cli/src/cmd/unuse.rs @@ -16,7 +16,7 @@ pub fn unuse_environment() -> Result<(), Error> { reset_env()?; let content = fs::read_to_string(format!("{}/.envhub/current", std::env::var("HOME")?))?; let lines = content.lines().collect::>(); - if lines.len() != 2 { + if lines.len() != 3 { panic!("Invalid .envhub/current file"); } let home_manager_dir = lines[0];