mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 02:57: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
|
||||
|
||||
def --wrapped sync [...arguments] {
|
||||
(rsync
|
||||
--rsh "ssh"
|
||||
(rsync
|
||||
--archive
|
||||
--compress
|
||||
|
||||
--delete --recursive --force
|
||||
--delete-excluded
|
||||
--delete-missing-args
|
||||
--delete-missing-arguments
|
||||
|
||||
--human-readable
|
||||
--delay-updates
|
||||
...$arguments)
|
||||
}
|
||||
|
||||
|
@ -30,10 +34,6 @@ def main --wrapped [
|
|||
}
|
||||
|
||||
if $remote {
|
||||
ssh -tt ("root@" + $host) $"
|
||||
rm --recursive --force ncc
|
||||
"
|
||||
|
||||
git ls-files
|
||||
| sync --files-from - ./ $"root@($host):ncc"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue