顺风转舵

shùn fēng zhuǎn duò

to act according to whatever is the current outlook

pragmatic; unprincipled

顺

shùn

to obey

风

fēng

wind

转

zhuǎn

to turn

舵

duò

helm