顺风转舵

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