mirror of
https://github.com/rwinkhart/sshyp.git
synced 2026-08-28 04:46:34 -04:00
Fixed offline-mode sync warning displaying at inappropriate times
Former-commit-id: 37c0fe00ec30a903ec7ba40525f01a2963b24d72 Former-commit-id: e6cea4d212e6f9b231dc0d0743b667b9f2eb376c
This commit is contained in:
+1
-1
@@ -720,7 +720,7 @@ 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:
|
||||
elif arg_count > 0 and arguments[0] == 'sync' and offline_mode_enabled:
|
||||
print("\n\u001b[38;5;9mwarning: sshyp is currently configured in offline mode - ssh synchronization is "
|
||||
"disabled\u001b[0m\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user