1
Fork 0
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:
RGBCube 2025-02-26 00:35:06 +03:00
parent 5c9b98bdfc
commit fc967c199f
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -1,5 +1,15 @@
#!/usr/bin/env nu #!/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. # Rebuild a NixOS / Darwin config.
def main --wrapped [ def main --wrapped [
host: string = "" # The host to build. host: string = "" # The host to build.
@ -13,12 +23,7 @@ def main --wrapped [
if $host != (hostname) { if $host != (hostname) {
git ls-files git ls-files
| (rsync | sync --files-from - ./ ($host + ":ncc")
--rsh "ssh -q"
--delete-missing-args
--compress
--files-from -
./ ($host + ":ncc"))
ssh -q -tt $host $" ssh -q -tt $host $"
cd ncc cd ncc