Skip to content

Commit

Permalink
Allow root "/", closes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Feb 27, 2024
1 parent f7c4f7f commit 003b9e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rsync_time_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -561,8 +561,8 @@ def handle_ssh(
if ssh.src_folder:
src_folder = ssh.src_folder

dest_folder = dest_folder.rstrip("/")
src_folder = src_folder.rstrip("/")
dest_folder = dest_folder.rstrip("/") if dest_folder != "/" else dest_folder
src_folder = src_folder.rstrip("/") if src_folder != "/" else src_folder

if not src_folder or not dest_folder:
log_error("Source and destination folder cannot be empty.")
Expand Down

0 comments on commit 003b9e0

Please sign in to comment.