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:
parent
f107c705f3
commit
788382ec81
1 changed files with 7 additions and 7 deletions
14
rebuild.nu
14
rebuild.nu
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue