From e0f37af4538a75d5c5a1926cf39ae421c89ec26a Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Tue, 13 Jun 2023 14:57:43 -0400 Subject: [PATCH] Fixed the 'sync' argument working in offline mode if the user has previously saved sshync configurations Former-commit-id: 9fa803ba406ede532a8d50c0138dace89cce405e Former-commit-id: b63538263fa365e5a0f9ade3b5a90d5b066fe06f --- lib/sshyp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sshyp.py b/lib/sshyp.py index c4d6197..8e33315 100755 --- a/lib/sshyp.py +++ b/lib/sshyp.py @@ -859,7 +859,7 @@ if __name__ == "__main__": extension_runner() else: print_info() - elif (not ssh_error and sync_flag) or (arg_count > 0 and arguments[0] == 'sync'): + elif not ssh_error and (sync_flag or (arg_count > 0 and arguments[0] == 'sync')): sync() except KeyboardInterrupt: