mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 21:06:34 -04:00
Added a warning when the user manually attempts to sync in offline mode
Former-commit-id: f54591cc6997078a248c5d8dc3dcd533824c04e4 Former-commit-id: fb405077f39e22840e98bca6a854496bd583c49c
This commit is contained in:
+4
-1
@@ -603,7 +603,7 @@ if __name__ == "__main__":
|
||||
ssh_error, success_flag, sync_flag, silent_sync, pass_show = False, False, False, False, False
|
||||
|
||||
# set to avoid PEP8 warnings
|
||||
arg_start, device_type = None, None
|
||||
arg_start, device_type, offline_mode_enabled = None, None, None
|
||||
|
||||
# retrieve typed argument
|
||||
arguments = argv[1:]
|
||||
@@ -715,6 +715,9 @@ if __name__ == "__main__":
|
||||
sync()
|
||||
elif (arg_count > 0 and arguments[0] == 'sync') or (arg_count > 1 and arguments[1] == 'shear'):
|
||||
sync('\n')
|
||||
elif offline_mode_enabled == 'true':
|
||||
print("\n\u001b[38;5;9mwarning: sshyp is currently configured in offline mode - ssh synchronization is "
|
||||
"disabled\n")
|
||||
|
||||
# PORT START ARGS-SERVER
|
||||
# server arguments
|
||||
|
||||
Reference in New Issue
Block a user