Skip to content

Commit 9eb3038

Browse files
authored
chore: dont use sudo if user is root on the install branch (#311)
1 parent e34e519 commit 9eb3038

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/xtask/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1302,7 +1302,7 @@ impl Xtasks {
13021302
// install alsa et al
13031303
if cfg!(target_os = "linux") {
13041304
let sudo = if !is_root::is_root() { "sudo" } else { "" };
1305-
let install_cmd = format!("{sudo} apt-get update && sudo apt-get install --no-install-recommends -y libasound2-dev libudev-dev");
1305+
let install_cmd = format!("{sudo} apt-get update && {sudo} apt-get install --no-install-recommends -y libasound2-dev libudev-dev");
13061306
Self::run_system_command(
13071307
&app_settings,
13081308
"sh",

0 commit comments

Comments
 (0)