mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 02:27:44 +00:00
fix: fix rsync command in rebuild.nu
This commit is contained in:
parent
5c9b98bdfc
commit
fc967c199f
1 changed files with 11 additions and 6 deletions
17
rebuild.nu
17
rebuild.nu
|
@ -1,5 +1,15 @@
|
|||
#!/usr/bin/env nu
|
||||
|
||||
def --wrapped sync [...arguments] {
|
||||
(rsync
|
||||
--rsh "ssh -q"
|
||||
--compress
|
||||
--delete --recursive --force
|
||||
--delete-excluded
|
||||
--delete-missing-args
|
||||
...$arguments)
|
||||
}
|
||||
|
||||
# Rebuild a NixOS / Darwin config.
|
||||
def main --wrapped [
|
||||
host: string = "" # The host to build.
|
||||
|
@ -13,12 +23,7 @@ def main --wrapped [
|
|||
|
||||
if $host != (hostname) {
|
||||
git ls-files
|
||||
| (rsync
|
||||
--rsh "ssh -q"
|
||||
--delete-missing-args
|
||||
--compress
|
||||
--files-from -
|
||||
./ ($host + ":ncc"))
|
||||
| sync --files-from - ./ ($host + ":ncc")
|
||||
|
||||
ssh -q -tt $host $"
|
||||
cd ncc
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue