Skip to content

Commit

Permalink
Merge pull request #51 from TJSomething/init-dest-on-bisync
Browse files Browse the repository at this point in the history
Initialize destination_path when bisync is on
  • Loading branch information
GedasFX authored Jan 10, 2024
2 parents a5531f9 + 0979e9a commit ede09ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ async def sync_now(self):
sync_command = "copy"
logger.debug("using copy")

destination_path = next((x[1] for x in _get_config() if x[0] == "destination_directory"), "decky-cloud-save")
destination_path = next((x[1] for x in _get_config() if x[0] == "destination_directory"), "decky-cloud-save")

logger.debug("Running command: %s %s --filter-from %s / backend:%s --copy-links", rclone_bin, sync_command, cfg_syncpath_filter_file, destination_path)
self.current_sync = await asyncio.subprocess.create_subprocess_exec(rclone_bin, *[sync_command, "--filter-from", cfg_syncpath_filter_file, "/", f"backend:{destination_path}", "--copy-links"])
Expand Down

0 comments on commit ede09ab

Please sign in to comment.