mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-30 05:46:31 -04:00
Made line spacing before sync text more consistent
Former-commit-id: 2539fcb335c63424ca9e4d6e6f49af42ad4ff6bf Former-commit-id: 5041cb5b85e4f16706f91af3d6d16c38e4855fe8
This commit is contained in:
+7
-4
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user