Skip to content

Commit

Permalink
compilation test
Browse files Browse the repository at this point in the history
  • Loading branch information
kinire98 committed Jun 9, 2024
1 parent 01468c7 commit 614b61c
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,8 @@ fn main() {
if PathBuf::from("/etc/klone/").is_dir() {
return;
}
let cur_user: String = String::from_utf8(
Command::new("who | cut -d' ' -f1")
.stdout(std::process::Stdio::piped())
.output()
.unwrap()
.stdout,
)
.unwrap();
let cur_user: String =
String::from_utf8(Command::new("who | cut -d' ' -f1").output().unwrap().stdout).unwrap();
if !Uid::effective().is_root() {
let mut input = String::new();
print!("Enter sudo password to create the app configuration: ");
Expand Down

0 comments on commit 614b61c

Please sign in to comment.