mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-22 12:41:05 +01:00
Solved type error: https://chat.openai.com/share/132f9bdd-f09c-4ffa-ae80-28c04d5fc484
This commit is contained in:
parent
bac40d54c9
commit
9bd600e6ed
@ -40,10 +40,11 @@ def main():
|
|||||||
print("Starting synchronization...")
|
print("Starting synchronization...")
|
||||||
try:
|
try:
|
||||||
rsync_command = [
|
rsync_command = [
|
||||||
"rsync", "-abP", "--delete", "--delete-excluded",
|
"rsync", "-abP", "--delete", "--delete-excluded"
|
||||||
"--link-dest=" + previous_version_path,
|
|
||||||
source_path, current_version_path
|
|
||||||
]
|
]
|
||||||
|
if previous_version_path is not None:
|
||||||
|
rsync_command.append("--link-dest=" + previous_version_path)
|
||||||
|
rsync_command.extend([source_path, current_version_path])
|
||||||
rsync_output = subprocess.check_output(rsync_command, stderr=subprocess.STDOUT, text=True)
|
rsync_output = subprocess.check_output(rsync_command, stderr=subprocess.STDOUT, text=True)
|
||||||
|
|
||||||
print(rsync_output)
|
print(rsync_output)
|
||||||
|
Loading…
Reference in New Issue
Block a user