It depends on how the wind blows sometimes if you say Good morning youll get a Good morning back, other times you'll get a grunt and other times ignored.
If they ignore you then there's no need to continue to be polite just finish what you wanted to do and leave.