Scripts: remove ssh jump from psyncup

This commit is contained in:
Akemi Izuko 2025-04-01 22:14:55 -06:00
parent c808afc884
commit 26fa675960
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -11,11 +11,11 @@ CONFIG_NAME = ".psyncup.json"
CONFIG_EXAMPLE = """\
{
"ssh_remote": "emiliko@10.0.0.1",
"ssh_jump": "emiliko@178.54.2.3",
"remote_dir": "/home/emiliko/.configs_pointer",
"update_date": "2023-12-01_01:01:01_UTC",
"exclude": [
".git",
".venv",
"bin/rewritten_in_rust/target"
]
}"""
@ -151,10 +151,6 @@ def build_commands(args, config):
if args.dry_run:
rsync_cmd.append("--dry-run")
if config.get("ssh_jump") is not None:
rsync_cmd.append("-e")
rsync_cmd.append(f"ssh -J {config['ssh_jump']}")
if config.get("exclude") is not None:
for x in config["exclude"]:
rsync_cmd.append(f"--exclude={x}")