Skip to content

Commit 983bbfc

Browse files
committed
Fix use of env::args() to use env::current_exe()
1 parent 4fa441c commit 983bbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/aliaser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use std::env::{self, consts::EXE_SUFFIX};
33
use crate::{fs, paths};
44

55
pub fn add_self_alias(name: &str) {
6-
let foreman_path = env::args().next().unwrap();
6+
let foreman_path = env::current_exe().unwrap();
77
let mut alias_path = paths::bin_dir();
88
alias_path.push(format!("{}{}", name, EXE_SUFFIX));
99

0 commit comments

Comments
 (0)