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: