mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-09-06 00:57:14 -04:00
Made line spacing before sync text more consistent
Former-commit-id: 2539fcb335c63424ca9e4d6e6f49af42ad4ff6bf Former-commit-id: 5041cb5b85e4f16706f91af3d6d16c38e4855fe8
This commit is contained in:
+6
-3
@@ -387,8 +387,8 @@ def read_shortcut():
|
|||||||
|
|
||||||
|
|
||||||
# calls sshync to sync changes to the user's server
|
# calls sshync to sync changes to the user's server
|
||||||
def sync():
|
def sync(_start_text=''):
|
||||||
print('\nsyncing entries with the server device...\n')
|
print(f"{_start_text}syncing entries with the server device...\n")
|
||||||
# set permissions before uploading
|
# set permissions before uploading
|
||||||
for _root, _dirs, _files in walk(f"{home}/.local/share/sshyp"):
|
for _root, _dirs, _files in walk(f"{home}/.local/share/sshyp"):
|
||||||
for _path in _root.splitlines():
|
for _path in _root.splitlines():
|
||||||
@@ -720,8 +720,11 @@ if __name__ == "__main__":
|
|||||||
extension_runner()
|
extension_runner()
|
||||||
else:
|
else:
|
||||||
print_info()
|
print_info()
|
||||||
elif not ssh_error and (sync_flag or (arg_count > 0 and arguments[0] == 'sync')):
|
elif not ssh_error:
|
||||||
|
if sync_flag:
|
||||||
sync()
|
sync()
|
||||||
|
elif arg_count > 0 and arguments[0] == 'sync':
|
||||||
|
sync('\n')
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
print('\n')
|
print('\n')
|
||||||
|
|||||||
Reference in New Issue
Block a user