1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-29 11:07:44 +00:00

rebuild: fix rsync command

This commit is contained in:
RGBCube 2025-06-25 18:47:41 +03:00
parent f107c705f3
commit 788382ec81
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -1,12 +1,16 @@
#!/usr/bin/env nu #!/usr/bin/env nu
def --wrapped sync [...arguments] { def --wrapped sync [...arguments] {
(rsync (rsync
--rsh "ssh" --archive
--compress --compress
--delete --recursive --force --delete --recursive --force
--delete-excluded --delete-excluded
--delete-missing-args --delete-missing-arguments
--human-readable
--delay-updates
...$arguments) ...$arguments)
} }
@ -30,10 +34,6 @@ def main --wrapped [
} }
if $remote { if $remote {
ssh -tt ("root@" + $host) $"
rm --recursive --force ncc
"
git ls-files git ls-files
| sync --files-from - ./ $"root@($host):ncc" | sync --files-from - ./ $"root@($host):ncc"