Skip to content

Commit

Permalink
Merge pull request #190 from cantino/fix-176
Browse files Browse the repository at this point in the history
Avoid variable substitutions
  • Loading branch information
cantino authored Aug 27, 2021
2 parents 9b6cda9 + c9c4f69 commit fd26964
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/path_update_helpers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ use std::path::Path;
use unicode_segmentation::UnicodeSegmentation;

pub fn normalize_path(incoming_path: &str) -> String {
let expanded_path = shellexpand::full(incoming_path)
.unwrap_or_else(|err| panic!("McFly error: Unable to expand command path ({})", err));
let expanded_path = shellexpand::tilde(incoming_path);

let current_dir = env::var("PWD").unwrap_or_else(|err| {
panic!(
Expand Down

0 comments on commit fd26964

Please sign in to comment.