diff --git a/lib/sshync.py b/lib/sshync.py index 7d600d3..d0d2058 100644 --- a/lib/sshync.py +++ b/lib/sshync.py @@ -84,11 +84,15 @@ def remote_list_fetch(_user_data): # checks for and acts upon files and folders marked for deletion def deletion_sync(_deletion_database, _silent): + _synced = False for _file in _deletion_database: if _file != '': if not _silent: + _synced = True print(f"\u001b[38;5;208m{_file}\u001b[0m has been sheared, removing...") delete(_file, 'locally', _silent) + if _synced: + print() # creates matches of remote folders on the local client diff --git a/lib/sshyp.py b/lib/sshyp.py index ae14ffd..55c1138 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -570,7 +570,7 @@ def remove_data(): decrypt(None, _quick_verify=quick_unlock_enabled) if not ssh_error: run(('ssh', '-i', f"{home}/.ssh/sshyp", '-p', port, f"{username_ssh}@{ip}", - f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely", False)\'')) + f'cd /usr/lib/sshyp; python3 -c \'from sshync import delete; delete("{entry_name}", "remotely", True)\'')) else: offline_delete(entry_name, 'locally', silent_sync)