mirror of
https://github.com/RGBCube/ncc
synced 2025-07-28 10:37:44 +00:00
fix: fix rsync command in rebuild.nu
This commit is contained in:
parent
5c9b98bdfc
commit
fc967c199f
1 changed files with 11 additions and 6 deletions
17
rebuild.nu
17
rebuild.nu
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue