1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 18:17: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
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