Merge pull request 'ssh/upload: fix shell quoting' (#3205) from default-groups into main

Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/3205
This commit is contained in:
Mic92
2025-04-04 15:27:17 +00:00

View File

@@ -66,7 +66,7 @@ def upload(
if host.user != "root":
sudo = "sudo -- "
cmd = "rm -rf $0 && mkdir -m $1 -p $0 && tar -C $0 -xzf -"
cmd = 'rm -rf "$0" && mkdir -m "$1" -p "$0" && tar -C "$0" -xzf -'
# TODO accept `input` to be an IO object instead of bytes so that we don't have to read the tarfile into memory.
with tar_path.open("rb") as f: