committed by
GitHub
parent
f73c3ef31a
commit
358fbd8c02
@@ -175,7 +175,10 @@ pub fn run_nix(ctx: &ExecutionContext) -> Result<()> {
|
|||||||
|
|
||||||
if multi_user {
|
if multi_user {
|
||||||
if let Some(sudo) = ctx.sudo() {
|
if let Some(sudo) = ctx.sudo() {
|
||||||
run_type.execute(&sudo).arg("nix").arg("upgrade-nix").check_run()?;
|
run_type
|
||||||
|
.execute(&sudo)
|
||||||
|
.args(&["-i", "nix", "upgrade-nix"])
|
||||||
|
.check_run()?;
|
||||||
} else {
|
} else {
|
||||||
print_warning("Need sudo to upgrade Nix");
|
print_warning("Need sudo to upgrade Nix");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user