mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Removed unnecessary output when shearing a non-existent entry
Former-commit-id: 7c264de0ebf49889e309d43d1ad5a7483845308e Former-commit-id: 84c4c04e1bd4b085b457ddbd8184c9c3b028dcd1
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user