Skip to content

Commit

Permalink
Merge pull request #21 from tsirysndr/fix/unuse-environment
Browse files Browse the repository at this point in the history
fix(unuse): resolve bug on unuse environment
  • Loading branch information
tsirysndr authored Oct 11, 2023
2 parents fddba51 + b0ba4e7 commit 0788cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/cli/src/cmd/unuse.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<Vec<&str>>();
if lines.len() != 2 {
if lines.len() != 3 {
panic!("Invalid .envhub/current file");
}
let home_manager_dir = lines[0];
Expand Down

0 comments on commit 0788cfe

Please sign in to comment.