From 2834c6d67c36715a3343f9b1354e088577467358 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 20 Jun 2023 13:51:05 -0400 Subject: [PATCH] Made line spacing before sync text more consistent Former-commit-id: 2539fcb335c63424ca9e4d6e6f49af42ad4ff6bf Former-commit-id: 5041cb5b85e4f16706f91af3d6d16c38e4855fe8 --- lib/sshyp.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index bd2a886..7183c5d 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -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')