mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +00:00
rebuild: use root
This commit is contained in:
parent
a8538290c9
commit
9adc4abe96
1 changed files with 5 additions and 5 deletions
10
rebuild.nu
10
rebuild.nu
|
@ -30,14 +30,14 @@ def main --wrapped [
|
||||||
}
|
}
|
||||||
|
|
||||||
if $remote {
|
if $remote {
|
||||||
ssh -tt $host $"
|
ssh -tt ("root@" + $host) $"
|
||||||
rm --recursive --force ncc
|
rm --recursive --force ncc
|
||||||
"
|
"
|
||||||
|
|
||||||
git ls-files
|
git ls-files
|
||||||
| sync --files-from - ./ ($host + ":ncc")
|
| sync --files-from - ./ $"root@($host):ncc"
|
||||||
|
|
||||||
ssh -tt $host $"
|
ssh -tt ("root@" + $host) $"
|
||||||
cd ncc
|
cd ncc
|
||||||
./rebuild.nu ($host) ($arguments | str join ' ')
|
./rebuild.nu ($host) ($arguments | str join ' ')
|
||||||
"
|
"
|
||||||
|
@ -56,7 +56,7 @@ def main --wrapped [
|
||||||
] | append ($args_split | get --ignore-errors 1 | default [])
|
] | append ($args_split | get --ignore-errors 1 | default [])
|
||||||
|
|
||||||
if (uname | get kernel-name) == "Darwin" {
|
if (uname | get kernel-name) == "Darwin" {
|
||||||
NH_NO_CHECKS=1 nh darwin switch . ...$nh_flags -- ...$nix_flags
|
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh darwin switch . ...$nh_flags -- ...$nix_flags
|
||||||
|
|
||||||
if not (xcode-select --install e>| str contains "Command line tools are already installed") {
|
if not (xcode-select --install e>| str contains "Command line tools are already installed") {
|
||||||
darwin-shadow-xcode-popup
|
darwin-shadow-xcode-popup
|
||||||
|
@ -64,7 +64,7 @@ def main --wrapped [
|
||||||
|
|
||||||
darwin-set-zshrc
|
darwin-set-zshrc
|
||||||
} else {
|
} else {
|
||||||
NH_NO_CHECKS=1 nh os switch . ...$nh_flags -- ...$nix_flags
|
NH_BYPASS_ROOT_CHECK=true NH_NO_CHECKS=true nh os switch . ...$nh_flags -- ...$nix_flags
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue