From db05e9b05eace3a986a880acc51f9e49c6af74a3 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 24 Sep 2023 19:35:48 -0400 Subject: [PATCH] Fixed offline-mode sync warning displaying at inappropriate times Former-commit-id: 37c0fe00ec30a903ec7ba40525f01a2963b24d72 Former-commit-id: e6cea4d212e6f9b231dc0d0743b667b9f2eb376c --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index 99c47ec..ede04b1 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -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")