Made line spacing before sync text more consistent

Former-commit-id: 2539fcb335c63424ca9e4d6e6f49af42ad4ff6bf
Former-commit-id: 5041cb5b85e4f16706f91af3d6d16c38e4855fe8
This commit is contained in:
2023-06-20 13:51:05 -04:00
parent 29c5e60804
commit 2834c6d67c
+7 -4
View File
@@ -387,8 +387,8 @@ def read_shortcut():
# calls sshync to sync changes to the user's server
def sync():
print('\nsyncing entries with the server device...\n')
def sync(_start_text=''):
print(f"{_start_text}syncing entries with the server device...\n")
# set permissions before uploading
for _root, _dirs, _files in walk(f"{home}/.local/share/sshyp"):
for _path in _root.splitlines():
@@ -720,8 +720,11 @@ if __name__ == "__main__":
extension_runner()
else:
print_info()
elif not ssh_error and (sync_flag or (arg_count > 0 and arguments[0] == 'sync')):
sync()
elif not ssh_error:
if sync_flag:
sync()
elif arg_count > 0 and arguments[0] == 'sync':
sync('\n')
except KeyboardInterrupt:
print('\n')