mirror of
https://github.com/RGBCube/ncc
synced 2026-01-17 02:31:06 +00:00
rebuild: remove sudo
This commit is contained in:
parent
a544ede06e
commit
a4965ea000
1 changed files with 3 additions and 3 deletions
|
|
@ -57,11 +57,11 @@ def main --wrapped [
|
|||
let nix_flags = [
|
||||
"--accept-flake-config"
|
||||
"--extra-experimental-features" "pipe-operators"
|
||||
] | append ($args_split | get --ignore-errors 1 | default [])
|
||||
] | append ($args_split | get --optional 1 | default [])
|
||||
|
||||
if (uname | get kernel-name) == "Darwin" {
|
||||
sudo NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh darwin switch . ...$nh_flags -- ...$nix_flags
|
||||
nh darwin switch . ...$nh_flags -- ...$nix_flags
|
||||
} else {
|
||||
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh os switch . ...$nh_flags -- ...$nix_flags
|
||||
nh os switch . ...$nh_flags -- ...$nix_flags
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue